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

[REBOL] Re: Sort by first part of line

From: carl:cybercraft at: 7-Sep-2002 22:14

On 07-Sep-02, [SunandaDH--aol--com] wrote:
> Your code makes less assumptions that Joel's -- yours is sorting on > the first four characters of a line. That's should be in the format > "b999" (b=space 9=digit) but your code will work if it isn't
I made the assumption that it'd either be space + 3 digits or 3 digits + space - but I should've included a trim just to be sure in case there was the occasional leading space missing. The important thing though is that Louis has a good few routines to tweek now. He could change the format of the code to anything he wished and easily modify these to suit. As to the degradation - I wouldn't know what causes that. I've detected garbage collection with previous speed tests, but never a general slowdown over time. -- Carl Read