Is incorrect. Assuming the groups really look like "AA01" and "GF02", and assuming you want them in alphabetical order, and assuming these are in the hash %hash, this is what you want:sort keys { $a <=> $b } %hash
sort { $a cmp $b } keys %hash
In reply to Re: Some advice regaring sorting and hashes
by markkawika
in thread Some advice regaring sorting and hashes
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |