in reply to alphabetize a hash ignoring upper/lower cases

vladb answer works fine, and I would like to add that if the code you posted is actually what you are doing instead of a simplified example, then you really don't need the keys of the hash and it can all be written as:
my @mips = sort { lc($a) cmp lc($b) } values %mips;

Replies are listed 'Best First'.
Re: Re: alphabetize a hash ignoring upper/lower cases
by Anonymous Monk on May 11, 2003 at 11:59 UTC
    if you have a lot of elements doing the case conversion everytime you compare two elements this will be inefficent. i'd suggest:
    my @imps = map { $_->[1] } sort { $a->[0] cmp $b->[0] } map { [ lc $_, $_ ] } values %mips;