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

3 lines
47 B
Swift

let nums = [2,4,3,1,2].sorted(<)
println(nums)