realbasic-nug
[Top] [All Lists]

How do you sort Object arrays?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: How do you sort Object arrays?
From: Phil M <phil at mobleybros dot com>
Date: Fri, 29 Sep 2006 16:41:38 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
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?


_______________________________________________
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>