code: public static List<Order> parse(final String orderString) {
      if (Strings.isBlank(orderString)) {
        return new ArrayList<Order>();
      } else {
        final List<Order> orders = new ArrayList<Order>();
        final String[] orderStrs = Strings.split(orderString, ',');
        for (int i = 0; i < orderStrs.length; i++) {
          String order = orderStrs[i].trim();
          if (Strings.isBlank(order)) {
            continue;
          }
          order = order.toLowerCase().trim();
          if (order.endsWith(" desc")) {
            orders.add(new Order(orderStrs[i].substring(0, order.indexOf(" desc")), false));
          } else if (order.endsWith(" asc")) {
            orders.add(new Order(orderStrs[i].substring(0, order.indexOf(" asc")), true));
          } else {
            orders.add(new Order(orderStrs[i], true));
          }
        }
        return orders;
      }
    }
docs: <p>
  parse.
  </p>
  
  @param orderString a {@link java.lang.String} object.
  @return a {@link java.util.List} object.