September 19, 2021
Sorting: Comparator
Problem Description: Comparators are used to compare two objects. In this challenge, you’ll create a comparator and use it to sort an array. The Player class is provided in the editor below. It has two fields: name: a string. score: an integer. Given an array of Player objects, write a comparator that sorts them in order of decreasing score. If...