code: public void setSortcontrol(String sortControl) throws PageException {
  	String[] sortControlArr = ArrayUtil.trim(ListUtil.toStringArray(ListUtil.listToArrayRemoveEmpty(sortControl, ',')));
  	for (int i = 0; i < sortControlArr.length; i++) {
  	    String scs = sortControlArr[i].trim().toLowerCase();
  
  	    if (scs.equals("asc")) sortDirection = LDAPClient.SORT_DIRECTION_ASC;
  	    else if (scs.equals("desc")) sortDirection = LDAPClient.SORT_DIRECTION_DESC;
  	    else if (scs.equals("case")) sortType = LDAPClient.SORT_TYPE_CASE;
  	    else if (scs.equals("nocase")) sortType = LDAPClient.SORT_TYPE_NOCASE;
  	    else throw new ApplicationException("invalid value for attribute sortControl [" + sortControl + "], " + "valid values are [asc,desc,case,nocase]");
  	}
      }
docs: Specifies how to sort query results.
  
  @param sortControl sortControl to set
  @throws PageException