Skip to content

Commit

Permalink
Use the sorted tags
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sandor committed Nov 18, 2024
1 parent 5e92dea commit c7f6c3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ public String export() {
var uniqueBkmksWithTag = new ArrayList<TagBookmarks>();

// Sort by the largest tags set.
tags.stream().sorted((rTag, lTag) -> rTag.bookmarks().size() - lTag.bookmarks().size()).toList();
var sorted = tags.stream().sorted((rTag, lTag) -> rTag.bookmarks().size() - lTag.bookmarks().size()).toList();

// streams the sorted list
tags.stream().forEach(t -> {
sorted.stream().forEach(t -> {
var uniques = new ArrayList<BookmarkOnly>();
addUniqueBookmarks(t, uniques, foundMap, uniqueBkmksWithTag);
});
Expand Down

0 comments on commit c7f6c3b

Please sign in to comment.