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

3 lines
42 B
Swift

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