Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
So I am using this method from the Issue Bean for a Test Case to loop through the Test Results. I want to be able to sort the beans based on a field, but do not know of a smooth way to do this. I am basically looking for the latest Test Result so that I can pull information off of it.
Any ideas?
Cheers,
Don
Having a quick look through the available methods on the beans, it doesn't look like this is an option. One way to sort this would be to create a comparator class that looks at the field value when comparing two beans and then user the standard java sorting passing in the comparator. Alternatively, looping through the beans might be the best option if you just want to find the bean that meets some criteria (eg. the item with the largest ID was created last).
If additional information or investigation is required, please create a case or call Technical Support.