Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 7,495
× 1,325

Question asked: Mar 30 '20, 1:02 p.m.

Question was seen: 735 times

Last updated: Mar 30 '20, 1:02 p.m.

Confirmation Cancel Confirm