Typescript Sort Array Alphabetically Php