changes ordering from lexical to alphabetical