reorder the valid keys