Python Sort List Using Function In Javascript Programming Tutorial