From dd7355a45d33087848e5cc49ec383750af815184 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Jun 2017 17:49:32 +0200 Subject: [PATCH] Added sorting to posts on the profile --- pages/profile/profile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/profile/profile.go b/pages/profile/profile.go index 185d41a7..9e660b42 100644 --- a/pages/profile/profile.go +++ b/pages/profile/profile.go @@ -42,6 +42,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string { } }, func() { posts = viewUser.Posts() + arn.SortPostsLatestFirst(posts) if len(posts) > maxPosts { posts = posts[:maxPosts]