WordResultSorter: 1) anonymous Comparator replaced by Lambda, 2) delete comments