realbasic-nug
[Top] [All Lists]

Re: How do you sort Object arrays?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How do you sort Object arrays?
From: William Squires <wsquires at satx dot rr dot com>
Date: Sat, 30 Sep 2006 18:26:48 -0500
Cc:
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <003b01c6e4d5$77d01390$6401a8c0 at HP>

On Sep 30, 2006, at 4:14 PM, Walter Purvis wrote:

 -----Original Message-----
 I could have used Charles SortLibrary or I could have tried
 to create my own (and much slower) sorting algorithm.  What
 I ended up doing was taking advantage of the "new"
 SortWith() method (I think this was introduced in REALbasic 2005r1).

That's clever. I didn't even know there was a SortWith method! Perhaps
because when it came out, I read the LR's lame example case, which is based on using separate arrays to hold the different columns of a table of data (a
strategy I couldn't ever see myself using, at least not until senile
dementia sets in), and promptly put SortWith out of my mind as something
unlikely to ever be useful.

If we had community-extendable documentation (hint, hint) someone could add the infinitely more useful example case of using SortWith to sort objects...

RB WikiLanguageReference, anyone? :)


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>