Results 1 to 2 of 2

Thread: Sorting collection [resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    6

    Sorting collection [resolved]

    I have a collection of classes which I routinely access through a for each...next loop. My problem is that this loops through each object sorted by index, and I need to sort them by key. Is there a way to do this?
    Last edited by capable_coder; Feb 3rd, 2003 at 01:03 AM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Sorting collection

    Originally posted by capable_coder
    I have a collection of classes which I routinely access through a for each...next loop. My problem is that this loops through each object sorted by index, and I need to sort them by key. Is there a way to do this?
    I'm not sure if hashtable would do this but it has the ability to sort and restore by index (as I remember)

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