mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
CommonMark
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user