Javascript Sort List Of Objects Python Interview