added alphabetical sort when updating identifiers