Add functionality of sorting the scores.