Added sort alphabetically function.