in reply to Re: maintaining a sorted structure
in thread maintaining a sorted structure
Tie::IxHash maintains insertion order which is very unlikely to be sorted order indicated by the OP. Yes, it does have rudimentary manual sort capability (asciibetical sort by keys or values). It also has the ability to manually reorder the keys arbitrarily but the user must first do the sort. If what you need is a sorted hash and not an insertion order hash, then you should use Tie::Hash::Sorted which is designed for that purpose and also has a number of optimizations.
Disclaimer: I am the author of Tie::Hash::SortedCheers - L~R
|
|---|