code: public final List<T> findSortedByQuery(String query, String sort, Object... params) {
          return this.findSortedByQuery(query, sort, (Integer) null, (Integer) null, params);
      }
docs: finds all elements matching the given query and sorts them accordingly
  
  @param query  the query to search for
  @param sort   the sort query to apply
  @param params the parameters to replace # symbols
  @return the list of elements found