Python Sort Object Array Javascript Methods W3schools