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

4 lines
115 B
Rexx
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a = .array~of(4, 1, 6, -2, 99, -12)
say "The sorted numbers are"
say a~sortWith(.numericComparator~new)~makeString