sort constants confusing

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu