From c3f66959d3814903ca4d3a4e7c7d4369889e6363 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 17 Sep 2019 03:50:42 +0800 Subject: [PATCH] fix: sort in /ps/trophy --- lib/routes/ps/trophy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/ps/trophy.js b/lib/routes/ps/trophy.js index 05d419e99..f0af52d90 100644 --- a/lib/routes/ps/trophy.js +++ b/lib/routes/ps/trophy.js @@ -104,7 +104,7 @@ module.exports = async (ctx) => { items.forEach((item) => { result = result.concat(item); }); - items.sort((a, b) => new Date(a.pubDate) - new Date(b.pubDate)); + result = result.sort((a, b) => new Date(a.pubDate) - new Date(b.pubDate)); ctx.state.data = { title: `${id} 的 PSN 奖杯`,