Python Array Sort Function In Javascript Freecodecamp