RosettaCodeData/Task/Sort-an-integer-array/OoRexx/sort-an-integer-array.rexx

4 lines
115 B
Rexx
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
a = .array~of(4, 1, 6, -2, 99, -12)
say "The sorted numbers are"
say a~sortWith(.numericComparator~new)~makeString