Php Order Associative Array By Key Value In Python