public Comparator<ClientSession> getSortComparator() {
        return new SessionComparator();
    }
Returns a comparator that will sort a standard sorted set according
to this filter's sort order.

@return a comparator that sorts Sessions matching the sort order for this filter.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionResultFilter.java