public SearchCriteriaBean setOrder(String name, boolean ascending) {
        if (this.orderBy == null)
            this.orderBy = new OrderByBean();
        orderBy.setName(name);
        orderBy.setAscending(ascending);
        return this;
    }
@param name the name
@param ascending whether is ascending
manager/api/beans/src/main/java/io/apiman/manager/api/beans/search/SearchCriteriaBean.java