alphabetical sorting function changed