WordResultSorter: use Java 8 approach