From 3d7fc7ca462792fc0408cb2cba43e310e37cb546 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Mar 2017 23:37:52 +0900 Subject: [PATCH] [API] Fix bug --- src/api/endpoints/posts/trend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts index 46f682fb1f..8a373636ad 100644 --- a/src/api/endpoints/posts/trend.ts +++ b/src/api/endpoints/posts/trend.ts @@ -66,8 +66,8 @@ module.exports = (params, user) => new Promise(async (res, rej) => { limit: limit, skip: offset, sort: { - _id: -1, - repost_count: -1 + repost_count: -1, + _id: -1 } });