diff --git a/DB/Sources/DB/Content/ContentDatabase.swift b/DB/Sources/DB/Content/ContentDatabase.swift index 5ca2372..223949b 100644 --- a/DB/Sources/DB/Content/ContentDatabase.swift +++ b/DB/Sources/DB/Content/ContentDatabase.swift @@ -564,7 +564,7 @@ public extension ContentDatabase { excludeTypes: Set) -> AnyPublisher<[CollectionSection], Error> { ValueObservation.tracking( NotificationInfo.request( - NotificationRecord.order(NotificationRecord.Columns.id.desc) + NotificationRecord.order(NotificationRecord.Columns.createdAt.desc) .filter(!excludeTypes.map(\.rawValue).contains(NotificationRecord.Columns.type))).fetchAll) .removeDuplicates() .publisher(in: databaseWriter)