Re: sort constants confusing

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

Base on the input from above...

My suggestion:

  • leave the std/sort.e alone for compatibility reasons
    eventually deprecate it?
  • in the demo folder: provide a set of sort algorithms (from allsorts and rosetta code) for those that have special requirements
  • for stable sorting add: http://www.rapideuphoria.com/msort.zip from Mike
  • for natural sorting add: http://www.rapideuphoria.com/nat_sort.zip from Andy Serpa
  • The new sorting.e library will work on OE and Phix.

My working sorting definitions are:

stable

  • as found in msort but not in std/sort.e

rank

  • as output by the compare function (larger or smaller) or custom_compare

direction

  • UP or DN (default small to large )

order

  • the resulting sorted sequence
    • default is numerical (mathematical number line)
    • ASCII order for historical reasons
    • unicode order is what UTF8 gives you
    • natural order (as in nat_sort.zip)
    • user defined for things like sorting playing cards

_tom

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

Search



Quick Links

User menu

Not signed in.

Misc Menu