public static Collection<OrderField<?>> getOrderFields(final Map<String, Field<?>> fieldMap,
                                                           final BaseCriteria criteria) {
        return NullSafe.list(criteria.getSortList())
                .stream()
                .map(s -> getOrderField(fieldMap, s))
                .filter(Objects::nonNull)
                .collect(Collectors.toCollection(ArrayList::new));
    }
Used to build jOOQ conditions from string criteria

@param field    The jOOQ field being queried
@param criteria The criteria to apply
@return A condition that applies the given criteria
stroom-db-util/src/main/java/stroom/db/util/JooqUtil.java