mirror of
https://github.com/dergigi/boris.git
synced 2026-01-16 21:34:21 +01:00
fix: preserve content created_at, add listUpdatedAt for sorting by when bookmarked
This commit is contained in:
@@ -87,7 +87,7 @@ export const renderParsedContent = (parsedContent: ParsedContent) => {
|
||||
export const sortIndividualBookmarks = (items: IndividualBookmark[]) => {
|
||||
return items
|
||||
.slice()
|
||||
.sort((a, b) => (b.created_at || 0) - (a.created_at || 0))
|
||||
.sort((a, b) => (b.listUpdatedAt || 0) - (a.listUpdatedAt || 0))
|
||||
}
|
||||
|
||||
export function groupIndividualBookmarks(items: IndividualBookmark[]) {
|
||||
|
||||
Reference in New Issue
Block a user