in reply to sort exceptions

sort {$a eq "foot" ? -1 : $b eq "foot" ? 1 : $a cmp $b} keys %hash;
Next time, please pick a more suitable title. Your question has nothing to do with hashes, just with sorting. The fact you happen to sort hash keys doesn't make the answer any different.

Abigail

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.