/** * Returns the list of added entities sorted by priority. * <p> * The comparator used is < - therefore if {@code a.priority < b.priority} * then <tt>a</tt> will occur before <tt>b</tt> in the list. * * @return the list of entities ordered by priority ascending */ public List<T> getData() { Collections.sort(data); return Tuple.seconds(data); }