-
Type:
Bug
-
Resolution: Obsolete
-
Priority:
Low
-
None
-
Affects Version/s: 1.6.2
-
Component/s: Integration - Confluence
-
None
-
Severity 3 - Minor
Set<SOAPPrincipal> results = new HashSet<SOAPPrincipal>(); for (TermQuery query : queries) { List<SOAPPrincipal> termResults = performUserSearch(query); results.addAll(termResults); } return new ArrayList<SOAPPrincipal>(results);
will return a randomly ordered list. The set should probably be a TreeSet, and order each entry by name (or whatever logically sorts each of the constituent queries, if there is such a concept. If not maybe fullname?).