Suppose I have a list (or Set):
List testList = Lists.newArrayList(\"assocX\",\"srcT\",\"destA\",\"srcX\", \"don\'t care Y\", \"garbage\", \"sr
I think you'll have first to use the predicate to eliminate elements you don't want, and the implement a Comparator and sort your list.