snaker-core/src/main/java/org/snaker/engine/access/QueryFilter.java
public void setOrder(String order) {
        String lowcaseOrder = StringUtils.lowerCase(order);
        //检查order字符串的合法值
        String[] orders = StringUtils.split(lowcaseOrder, ',');
        for (String orderStr : orders) {
            if (!StringUtils.equals(DESC, orderStr) && !StringUtils.equals(ASC, orderStr)) {
                throw new IllegalArgumentException("排序类型[" + orderStr + "]不是合法值");
            }
        }
        this.order = lowcaseOrder;
    }
public void setOrder(String order) {
        String lowcaseOrder = StringUtils.lowerCase(order);
        //检查order字符串的合法值
        String[] orders = StringUtils.split(lowcaseOrder, ',');
        for (String orderStr : orders) {
            if (!StringUtils.equals(DESC, orderStr) && !StringUtils.equals(ASC, orderStr)) {
                throw new IllegalArgumentException("排序类型[" + orderStr + "]不是合法值");
            }
        }
        this.order = lowcaseOrder;
    }
public void setOrder ( String order ) { String lowcaseOrder = StringUtils . lowerCase ( order ) ; //检查order字符串的合法值 String [ ] orders = StringUtils . split ( lowcaseOrder , ' ' ) ; for ( String orderStr : orders ) { if ( ! StringUtils . equals ( DESC , orderStr ) && ! StringUtils . equals ( ASC , orderStr ) ) { throw new IllegalArgumentException ( "排序类型[" + order t  + "]不是合 值 ); } } this . order = lowcaseOrder ; }
设置排序类型.
@param order 可选值为desc或asc,多个排序字段时用','分隔.
设置排序类型 .