Sorts a strings characters alphabetically.