Commit 34d08b7c authored by nanahira's avatar nanahira

order by createTime desc

parent b261aa18
Pipeline #24714 passed with stages
in 29 seconds
......@@ -367,6 +367,8 @@ async function main() {
'select datas.*,texts.name,texts.desc from datas,texts where datas.id = texts.id and datas.type & 0x4000 = 0 and (datas.alias = 0 or datas.id - datas.alias > 10 or datas.id - datas.alias < -10)',
);
const formattedCards = await Promise.all(cards.map(formatCard));
// order by createTime desc
formattedCards.sort((a, b) => b.createTime - a.createTime);
console.log(JSON.stringify(formattedCards, null, 2));
process.exit(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment