sort constants confusing
- Posted by petelomax Jun 09, 2017
- 2674 views
http://openeuphoria.org/docs/std_sort.html#_2964_sorting
I could not work out why there were 4 sort options. It reads, at best, like you have to use ASCENDING for sort() and NORMAL_ORDER for custom_sort().
As soon as I looked at the source, the penny dropped instantly.
The documentation would be much clearer if it said...
The constants NORMAL_ORDER and REVERSE_ORDER are just aliases for ASCENDING and DESCENDING respectively, and behave identically.
Better yet, just bin two of them (I don't much care which).
Pete