Php Json Javascript Array Sort Function In Python W3schools