import algorithm, future const a = [1, 2, 3, 5, 12, 4, 7, 6, 7, 9]let sorted = a.sorted((a, b) => cmp(a, b))echo sorted
Standard input is empty
@[1, 2, 3, 4, 5, 6, 7, 7, 9, 12]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!