Python Program For Sorting An Array In Javascript