Php Order Array Of Strings Python