Php Order Array Of Strings In Typescript