LineNumberComparator: add comparator for easy sorting.