fix sort to be properly alphabetical

also spelling in comments.