code: public static void applyOrderBy(MultivaluedMap<String, String> queryParams, Query query) {
          List<String> orders = queryParams.get(SORT_PARAM_NAME);
          if (orders != null && orders.size() > 0) {
              OrderBy orderBy = query.orderBy();
              for (String order : orders) {
                  EbeanUtils.appendOrder(orderBy, order);
              }
          }
      }
docs: <p>applyOrderBy.</p>
  
  @param queryParams a {@link javax.ws.rs.core.MultivaluedMap} object.
  @param query       a {@link io.ebean.Query} object.