[REBOL] Re: Sort in REBOL
From: rotenca:telvia:it at: 8-Sep-2002 15:05
> > 3) The /ALL refinement allows you to sort more complex data,
> > for example, by data fields within blocks:
> > data: [ ["name" 123] ["fred" 345] ]
> > sort/compare/all data func [a b] [a/2 < b/2]
> > Perhaps you already know all this... but, I figured, what the
> > heck...
> I did not and yes that's very cool.
Or there is something i do not understand, or the Carl example is wrong (!).
I do not see here any difference in using ALL.
Like changes doc of Core 2.5 explains, ALL must be used with SKIP:
/all Used in combination with the /skip refinement. [NEW] By default only a
single field in a record is used for comparison. If the /all refinement is
used then all fields in a record are used for comparison.