code: public void setSort(String property, Boolean order) {
      	SortOrder sortOrder = order==null?SortOrder.ASCENDING:(order?SortOrder.ASCENDING:SortOrder.DESCENDING);
      	if(property==null) {
      		if(order==null) setSort(null);
      		else setSort("@rid", sortOrder);
      	} else {
      		super.setSort(property, sortOrder);
      	}
      }
docs: Set sort
  @param property property to sort on
  @param order order to apply: true is for ascending, false is for descending