Sort Dictionaries by values?

Results 1 to 2 of 2

Thread: Sort Dictionaries by values?

  1. #1
    Join Date
    Dec 1969

    Default Sort Dictionaries by values?

    Hi there,<BR><BR>Is it possible to sort dictionaries by "values" and not "keys"?<BR><BR>If so, please help and point me in the right direction.<BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default Nope.

    But you could easily iterate through dictionary one "inverting" the values and keys as you create dictionary two.<BR><BR>I would like to point out, though, that Scripting.Dictionary *NEVER* guarantees to get keys back *in order*. It&#039;s a hash table, not a sorted table.<BR><BR>

Posting Permissions

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