Php Sort Array Function Python Parameters