PatternSortKeyComparator now takes ruls.isSortedAscending(field) into account.