I want to make an array that stores an alphabetized list of hash keys. I tried this method:
@sorted = sort { $hash{$a} cmp $hash{$b} } keys %hash;
...But it turns out this returns a list of hash keys sorted by value (whereas I want a list of hash keys sorted alphabetically).
Any suggestions?