Php Order Array Of Strings Javascript