summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-10-24 19:27:15 +0100
committerHarrison Healey <harrisonmhealey@gmail.com>2017-10-24 14:27:15 -0400
commit61b023f5dfe796c7ba8183292853f01817016d14 (patch)
treeaa0f659b7c913a53737e3954c8568f682601d7fc /app/post.go
parent2a2af0e390e0323e02919598881783f38131b5ee (diff)
downloadchat-61b023f5dfe796c7ba8183292853f01817016d14.tar.gz
chat-61b023f5dfe796c7ba8183292853f01817016d14.tar.bz2
chat-61b023f5dfe796c7ba8183292853f01817016d14.zip
PLT-7822: Fix search order for SQL search backend. (#7704)
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go2
1 files changed, 2 insertions, 0 deletions
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
}
}