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