Use Hash#sort directly for nicer code