1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

CommonMark

This commit is contained in:
Rokt33r
2016-01-06 04:41:19 +09:00
parent 15560a3bce
commit c8337c7287
11 changed files with 69 additions and 27 deletions

View File

@@ -144,9 +144,8 @@ function remap (state) {
articles.sort((a, b) => {
let match = new Date(b.updatedAt) - new Date(a.updatedAt)
if (match === 0) match = new Date(b.createdAt) - new Date(a.createdAt)
if (match === 0) match = b.title.compare(a.title)
if (match === 0) match = b.key.compare(a.key)
if (match === 0) match = b.title.localeCompare(a.title)
if (match === 0) match = b.key.localeCompare(a.key)
return match
})
let allArticles = articles.slice()