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: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 29 Sep 2006 18:37:25 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C491F54F-2391-4E85-B2D1-6F856F4ADF15 at mobleybros dot com>

On Sep 29, 2006, at 5:41 PM, Phil M wrote:

Is is possible to add a Sort function to an Object array? Can I get sorts to work if the Object supports something like a "Sortable" interface? For example:

  Dim m() As myCustomClass

  // add various items

  m.Sort()

If the standard sort function is not available, can specify a property to sort the objects by?

That'd be nice if you could but I don't think there's a RB provided Sortable interface so arrays probably do not know how to Sort using one

Try Charles Sortlibrary http://declaresub.com/Code/SortLibrary.zip
_______________________________________________
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>