private Collection<OrderField<?>> createOrderFields(final ExpressionCriteria criteria) {
        if (criteria.getSortList() == null) {
            return Collections.emptyList();
        }
        return criteria.getSortList().stream().map(sort -> {
            Field<?> field;
            if (MetaFields.ID.getFldName().equals(sort.getId())) {
                field = meta.ID;
            } else if (MetaFields.CREATE_TIME.getFldName().equals(sort.getId())) {
                field = meta.CREATE_TIME;
            } else if (MetaFields.FEED.getFldName().equals(sort.getId())) {
                field = metaFeed.NAME;
            } else if (MetaFields.TYPE.getFldName().equals(sort.getId())) {
                field = metaType.NAME;
            } else if (MetaFields.PARENT_ID.getFldName().equals(sort.getId())) {
                field = meta.PARENT_ID;
            } else if (MetaFields.PARENT_CREATE_TIME.getFldName().equals(sort.getId())) {
                field = parent.CREATE_TIME;
            } else {
                field = meta.ID;
            }

            OrderField<?> orderField = field;
            if (sort.isDesc()) {
                orderField = field.desc();
            }

            return orderField;
        }).collect(Collectors.toList());
    }
@return True if any term in any rule expression uses at least one of {@code fields}.
stroom-meta/stroom-meta-impl-db/src/main/java/stroom/meta/impl/db/MetaDaoImpl.java