CrowdEntityQueryParser returns randomly ordered results from performOrUserSearch

XMLWordPrintable

    • Type: Bug
    • Resolution: Obsolete
    • Priority: Low
    • None
    • Affects Version/s: 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?).

            Assignee:
            Unassigned
            Reporter:
            Andrew Lynch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: