RosettaCodeData/Task/Sort-an-integer-array/EasyLang/sort-an-integer-array.easy

9 lines
156 B
Text
Raw Permalink Normal View History

2025-06-11 20:16:52 -04:00
proc sort &d[] .
for i = 1 to len d[] - 1 : for j = i + 1 to len d[]
if d[j] < d[i] : swap d[j] d[i]
2024-07-13 15:19:22 -07:00
.
.
a[] = [ 2 4 3 1 2 ]
sort a[]
print a[]