making sure results are in alphabetical order