fix: sort in /ps/trophy

This commit is contained in:
DIYgod
2019-09-17 03:50:42 +08:00
committed by GitHub
parent cdd7c9387f
commit c3f66959d3
+1 -1
View File
@@ -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 奖杯`,