Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] How do I get the sort/compare func not to sort? Re:(2)

From: holger:rebol at: 20-Sep-2000 13:15

On Wed, Sep 20, 2000 at 02:30:50PM -0500, [joel--neely--fedex--com] wrote:
> 1) the comparison function should return true or false according > to whether its two arguments are presented in the desired order > or not, and > > 2) sort/compare uses an unstable sorting algorithm.
Correct on both points. The current sort function does have its limitations... One of the next experimental builds will have a significantly improved sort function, which uses a stable sort algorithm and provides several additional options and refinements (hierarchical/lexicographical sorting etc.) -- Holger Kruse [holger--rebol--com]