code: protected String getSortOrderStringForQuery(MatcherPattern target, QueryParameters parameter) {
          String result = "";
          if (parameter.getSortOrder() != null && parameter.getSortOrder().length() >= 1) {
              result = parameter.getSortOrder();
          } else {
              result = target.getTableInfo().getDefaultSortOrderString();
          }
          return result;
      }
docs: This method gets the appropriate sort order.
  @param target
  Arguments passed to the onQuery() method.
  @param parameter
  Arguments passed to the onQuery() method.
  @return return an sort order string.
  @since 1.0.4