exit in alphabetical order