From 61b023f5dfe796c7ba8183292853f01817016d14 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Tue, 24 Oct 2017 19:27:15 +0100 Subject: PLT-7822: Fix search order for SQL search backend. (#7704) --- app/post.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index 4d91e8122..5e97f4443 100644 --- a/app/post.go +++ b/app/post.go @@ -645,6 +645,8 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr } } + posts.SortByCreateAt() + return posts, nil } } -- cgit v1.2.3-1-g7c22