Skip to content

Commit

Permalink
Merge pull request #630 from dlsc-software-consulting-gmbh/fix-sort-b…
Browse files Browse the repository at this point in the history
…log-by-date

Sort blog posts by date
  • Loading branch information
dlemmermann authored Jul 13, 2024
2 parents 43223b5 + 87fd249 commit ad1ecd6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected Task<Void> createTask() {
@Override
protected Void call() throws InterruptedException {
List<Post> posts = DataRepository2.getInstance().loadPosts(blog);
posts.sort((o1, o2) -> o2.getSyndEntry().getPublishedDate().compareTo(o1.getSyndEntry().getPublishedDate()));
Thread.sleep(500);
Platform.runLater(() -> {
listView.getItems().setAll(posts);
Expand Down

0 comments on commit ad1ecd6

Please sign in to comment.