SORTARRAY command

x13

Nov 9, 2016
72
1
Netherlands
This would be very useful.

Of course it's possible to dump an array into a file and apply a normal SORT (dos) on it, but reintegration proves a little trickier, as SORT only uses a single key; and it isn't possible to sort on multiple keys (columns) in one go.

Some may exclaim "%@FILEARRAY !", but it only creates vectors (one-dimensional arrays) so its usefulness is somewhat curtailed.

So short of having a command that could import a CSV file into an array (%@FILEARRAY could be enhanced to do that), then the lack of this adds time and effort...

With such a command, some goodies could be implemented such as built-in recursiveness, multiple sort keys and even a sort type selection (ie. quick sort, bubble sort, Lampsort, etc).

Submitted for your consideration.

x13