Remove obsolete loading animation
[Sone.git] / src / main / java / net / pterodactylus / sone / web / IndexPage.java
index 030ec3d..1d40f45 100644 (file)
@@ -78,7 +78,7 @@ public class IndexPage extends SoneTemplatePage {
                }
                allPosts = Collections2.filter(allPosts, postVisibilityFilter.isVisible(currentSone));
                List<Post> sortedPosts = new ArrayList<Post>(allPosts);
-               Collections.sort(sortedPosts, Post.TIME_COMPARATOR);
+               Collections.sort(sortedPosts, Post.NEWEST_FIRST);
                Pagination<Post> pagination = new Pagination<Post>(sortedPosts, webInterface.getCore().getPreferences().getPostsPerPage()).setPage(parseInt(request.getHttpRequest().getParam("page"), 0));
                templateContext.set("pagination", pagination);
                templateContext.set("posts", pagination.getItems());