Php Json Javascript Array Sort Numerically In Perl