code: public String toQueryString(Criteria criteria, CriteriaQueryBuilder queryBuilder) {
      String absolutePath = queryBuilder.getAbsolutePath(criteria, relativePath);
      return ascending ? absolutePath : absolutePath+" DESC";
    }
docs: 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