I noticed that somebody else's solution used `{|k,v| -v}`, avoiding the `reverse`. I think this way is clearer, though, and efficiency isn't a big concern here.