-
Bug
-
Resolution: Obsolete
-
Low
-
None
-
1.6.2
-
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?).