From f898ace0e0d89f62d40db59faa9c7a08b321f40b Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Thu, 18 Jul 2024 12:39:59 -0400 Subject: [PATCH] order --- .../dbmi/avillach/dictionary/facet/FacetCategoryExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetCategoryExtractor.java b/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetCategoryExtractor.java index 677ab2a..1379075 100644 --- a/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetCategoryExtractor.java +++ b/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetCategoryExtractor.java @@ -35,7 +35,7 @@ public List 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(); }