mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-17 07:51:21 +08:00
feat: change the sort priority
This commit is contained in:
@ -22,7 +22,7 @@ export function collectionDateSort(
|
|||||||
return b.data.date.getTime() - a.data.date.getTime();
|
return b.data.date.getTime() - a.data.date.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
const datePriorityForNote = ["date_modified", "date", "data_created"];
|
const datePriorityForNote = ["date", "date_modified", "data_created"];
|
||||||
|
|
||||||
export function collectionModifiedDateSort(
|
export function collectionModifiedDateSort(
|
||||||
a: CollectionEntry<"post" | "note">,
|
a: CollectionEntry<"post" | "note">,
|
||||||
|
Reference in New Issue
Block a user