Sorting a collection of FileItemHandles
hi all
For reasons I won't go into, consider that I have a collection of FileItemHandles, representing the versions of a set of files. As such, for a given itemId, there may be multiple stateIds. End goal is a collection sorted first by the itemId and second by the stateId.
What's a good way to sort this collection? I'm thinking of a TreeSet with a custom comparator.
Is there a better way?
thanks,
Steve