I have a generic Collection and am trying to work out how I can sort the items contained within it. I've tried a few things but I can't get any of them working.
Collection
You can't if T is all you get. It must be injected by the provider:
Collection<T extends Comparable>
or pass in the Comparator
Collections.sort(...)