Hashtable

Discussion in 'ASP .Net' started by =?Utf-8?B?dmluYXk=?=, Jul 25, 2005.

  1. =?Utf-8?B?dmluYXk=?=, Jul 25, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?dmluYXk=?=

    Mantorok Guest

    "vinay" <> wrote in message
    news:...
    > How to sort an Hashtable?


    You can't, however you might want to look at SortedList.

    Kev
     
    Mantorok, Jul 25, 2005
    #2
    1. Advertising

  3. =?Utf-8?B?SmFzb24gTCBMaW5k?=, Jul 25, 2005
    #3
  4. =?Utf-8?B?dmluYXk=?=

    Guest

    Due to the internal structure of a hastable its impossible to stort it.
    A hasttable is optimized for fast retreivel and it does it in such a way
    that order can't be maintained.

    You have to mump the data in another datastructure to sort it. Like the other
    person said use google for that, its a common question.

    Cheers,
    Tom Pester

    > How to sort an Hashtable?
    >
     
    , Jul 25, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guillermo

    Problem with hashTable

    Guillermo, Mar 4, 2004, in forum: Perl
    Replies:
    1
    Views:
    618
    Gunnar Hjalmarsson
    Mar 4, 2004
  2. Jonathan Wolfson

    vbc compilation fails when using Hashtable

    Jonathan Wolfson, Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    559
    Tu-Thach
    Jun 27, 2003
  3. John E

    Get Hashtable Object Directly

    John E, Oct 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,335
    Nicholas Paldino [.NET/C# MVP]
    Oct 8, 2003
  4. diya

    Type Hashtable not defined

    diya, Oct 31, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,795
    Nicole Calinoiu
    Oct 31, 2003
  5. D. Shane Fowlkes

    ArrayList versus HashTable

    D. Shane Fowlkes, Feb 12, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    17,795
    Kevin Spencer
    Feb 12, 2004
Loading...

Share This Page