Sort the list of key in rooms.