Skip to content

Commit

Permalink
Correctly sort data folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Jul 16, 2024
1 parent 2973bc4 commit 90da988
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ private List<java.nio.file.Path> getDataFolders(IdMappings idMappings) throws IO
}
}
return Stream.empty();
}).collect(Collectors.toList());
})
// sort by year and month descending (recent data first)
.sorted(Comparator.reverseOrder())
.collect(Collectors.toList());
}

@Override
Expand Down

0 comments on commit 90da988

Please sign in to comment.