keys() and values() return the list of keys/values from a hash in no particular order. This data is unsorted. If you want to sort it then you'll need to do that yourself. The only exception to this is that keys() and values() return their elements in the same order so if you say @keys = keys %h; @values = values %h you can find the matching element in the other array to get at the key / value.
20040810 Edit by ysth: reparented from 381779; changed title from: Re^2: XML::Lite --sort order in a keys() statement...
In reply to Re: XML::Simple and default sorting...
by diotalevi
in thread XML::Simple and default sorting...
by amonotod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |