public void setSortField(int sortField) {
        this.sortField = sortField;
    }
Sets the sort field to use. The default value is
SessionResultFilter.SORT_LAST_ACTIVITY_DATE.

@param sortField the field that will be used for sorting.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionResultFilter.java