src/main/java/org/criteria4jpa/order/Order.java
public String toQueryString(Criteria criteria, CriteriaQueryBuilder queryBuilder) {
    String absolutePath = queryBuilder.getAbsolutePath(criteria, relativePath);
    return ascending ? absolutePath : absolutePath+" DESC";
  }
public String toQueryString(Criteria criteria, CriteriaQueryBuilder queryBuilder) {
    String absolutePath = queryBuilder.getAbsolutePath(criteria, relativePath);
    return ascending ? absolutePath : absolutePath+" DESC";
  }
Renders the order to a ORDER BY substring of JPQL query

@param criteria The {@link Criteria} the order is associated with
@param queryBuilder The builder of the JPQL query
@return the generated query string