Add the concept of SortStrategy to Notification controllers
Description
Concrete INotificationService beans are completely responsible for their own sorting. AFAIK, all of them treat sorting as a pass-through concern vis-a-vis their external data source. In other words, the order they come in is the order they are presented.
That works often, but sometimes it just doesn't. Sometimes the remote service doesn't send them in any sensible order, sometimes you prefer a different order, and sometimes you need to combine entries from different sources into a single, sorted collection.
We should add the ability to specify (via portlet preferences) a SortStrategy that will be applied by the controller to a collection of entries before a user sees it.
Concrete INotificationService beans are completely responsible for their own sorting. AFAIK, all of them treat sorting as a pass-through concern vis-a-vis their external data source. In other words, the order they come in is the order they are presented.
That works often, but sometimes it just doesn't. Sometimes the remote service doesn't send them in any sensible order, sometimes you prefer a different order, and sometimes you need to combine entries from different sources into a single, sorted collection.
We should add the ability to specify (via portlet preferences) a SortStrategy that will be applied by the controller to a collection of entries before a user sees it.