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

[REBOL] Re: Sorting multiple fields at one time......

From: greggirwin::mindspring::com at: 21-Mar-2006 10:51

Hi John, If you add your records so each one is a sub-block, e.g.: if (regnbr <> "XXXX") [ repend/only sortBlock [lname fname mold minit regnbr] ] then you *should* just be able to use SORT without any refinements. I say should, because there may be cases where it doesn't work as you expect, but for consistently formatted blocks, it's pretty smart. Also, for loops that start at 1 and step by 1, REPEAT is *much* faster than FOR. FOR is a mezzanine while REPEAT is a native. -- Gregg