[REBOL] Re: Sort by first part of line
From: g:santilli:tiscalinet:it at: 4-Sep-2002 16:07
On Tuesday, September 3, 2002, 11:50:31 PM, you wrote:
Sac> But this doesn't preserve the input sequence -- it looks to me like
Sac> Rebol's sort is ***not*** stable.
It actually is, but if you use /COMPARE you need to return -1, 0
and 1 for it to be stable. (AFAIK) (-1 means a < b, 0 means a = b,
1 means a > b)
I think Luis just needs to LOAD its data, and then sort it with
SORT/SKIP. He can then reproduce the string from the LOADed data.
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r