code: public List<IssueCategory> getIssueCategories()
      {
          return this.issueCategories.values().stream()
                      .sorted((category1, category2) -> category1.getPriority() - category2.getPriority())
                      .collect(Collectors.toList());
      }
docs: Returns a list ordered from the highest priority to the lowest.