On Fri, Sep 10, 1999 at 09:11:40AM -0500, Richard L. Grubb wrote: > What is a good way to sort the values in a hash? > > I know that hash key/valure pairs are not stored in any particular > order. Should I convert the hash into two lists, and reorder the list of > keys to keep in step with the list of values? > You could use two lists instead, but then you lose all the benefit of using a hash. It really depends on what you need the sorted list of keys for. Do you need it continually updated as the hash changes, or are you using it once and discarding it after? Ronald ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org