Sorting: Comparator

  • + 0 comments

    Java Solution

    if( (a.score) == (b.score) ){
    	return (a.name).compareTo(b.name);
    }
    	return (b.score) - (a.score);