0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Correctly order posts in admin and frontend

issue #1303
This commit is contained in:
Harry Walter 2013-12-23 02:44:39 +00:00 committed by Hannah Wolfe
parent 2175310b1c
commit 7b390e73e6

View file

@ -281,8 +281,8 @@ Post = ghostBookshelf.Model.extend({
.query('limit', opts.limit)
.query('offset', opts.limit * (opts.page - 1))
.query('orderBy', 'status', 'ASC')
.query('orderBy', 'updated_at', 'DESC')
.query('orderBy', 'published_at', 'DESC')
.query('orderBy', 'updated_at', 'DESC')
.fetch(_.omit(opts, 'page', 'limit'))
.then(function (collection) {
var qb;