@Deprecated
    public static List<NotificationEntry> sort(PortletRequest req, List<NotificationEntry> entries) {

        final Comparator<NotificationEntry> comparator = chooseConfiguredComparator(req);
        if (comparator == null) {
            // No sorting;  we're done...
            return entries;
        }

        final List<NotificationEntry> rslt = new ArrayList<>(entries);  // defensive copy
        rslt.sort(comparator);

        return rslt;

    }
@ Deprecated public static List < NotificationEntry > sort ( PortletRequest req , List < NotificationEntry > entries ) { final Comparator < NotificationEntry > comparator = chooseConfiguredComparator ( req ) ; if ( comparator == null ) { return entries ; } final List < NotificationEntry > rslt = new ArrayList < > ( entries ) ; rslt . sort ( comparator ) ; return rslt ; }
@deprecated Part of the legacy, Portlet-based API.