Php Order Array Of Strings In Python