Skip to content

Commit

Permalink
order
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Jul 18, 2024
1 parent faa6f63 commit f898ace
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public List<FacetCategory> extractData(ResultSet rs) throws SQLException, DataAc
return categories.entrySet().stream()
.map(e -> new FacetCategory(
e.getValue(),
grouped.getOrDefault(e.getKey(), List.of()).stream().sorted(Comparator.comparingInt(Facet::count)).toList()
grouped.getOrDefault(e.getKey(), List.of()).stream().sorted(Comparator.comparingInt(Facet::count).reversed()).toList()
))
.toList();
}
Expand Down

0 comments on commit f898ace

Please sign in to comment.