RosettaCodeData/Task/Sort-an-integer-array/Swift/sort-an-integer-array-7.swift

3 lines
43 B
Swift

let nums = [2,4,3,1,2].sort(<)
print(nums)