On Sep 30, 2017 12:41 PM, "Parrot Raiser" <[email protected] <mailto:[email protected]>> wrote:Prepending the real key value with an order indicator, then sorting the retrieved list on the key would achieve that, (though the maximum number size would have to be known in advance.E.g. 001First_key => data1, 002Second => data2
On 09/30/2017 01:59 PM, Brock Wilcox wrote:
Maybe a list/array of pairs would be better, and then cast it to a hash if you need to do fast lookups.
I was going to create an "index" of the keys in an regular array. Then create the hash using the index. When I wanted to print things in order, loop on the index array, not the hash.
