says it isn't possible to impose an order on key-value pairs, which makes sense. However, is it possible to do some magic which returns an array of keys which are sorted by their hash values, or is this the same thing? If it isn't possible, is there a way to just return the endmost element of hash by sorted value? For instance, say I have a hash %scores = ('BlueTeam', 8, 'RedTeam', 2, 'GreenTeam', 4). Is it then possible to get back ('BlueTeam', 8), if I want the highest score? Granted, repeated values would complicate the issue; I'm assuming keys and values are unique.