Skip to content

Commit c7f6c3b

Browse files
committed
Use the sorted tags
1 parent 5e92dea commit c7f6c3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/dev/findfirst/core/service/BookmarkService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ public String export() {
193193
var uniqueBkmksWithTag = new ArrayList<TagBookmarks>();
194194

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

198198
// streams the sorted list
199-
tags.stream().forEach(t -> {
199+
sorted.stream().forEach(t -> {
200200
var uniques = new ArrayList<BookmarkOnly>();
201201
addUniqueBookmarks(t, uniques, foundMap, uniqueBkmksWithTag);
202202
});

0 commit comments

Comments
 (0)