Results 1 to 2 of 2

Thread: How can I sort an array of structures [resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164

    How can I sort an array of structures [resolved]

    I have an array of structures and I need to sort by one property of that structure. Is there any easy way to do this? I know that I can loop through the structure and shuffle them one at a time, but that would take forver.


    PHP Code:
        Private Shared m_Bookmarks() As Bookmark

        
    Public Structure Bookmark
            
    Public Name As String
            
    Public FieldA As String
            
    Public FieldB As String
            
    Public FieldC As String
        End Structure 
    I have a fully functional app using this stuff, but now I need to sort the items based on Name, FieldA, FieldB, etc.

    Any ideas?

    thanks,
    Last edited by Shurijo; Sep 30th, 2003 at 11:39 AM.
    -Shurijo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width