mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use savedAt to sort by recently read
This commit is contained in:
parent
04e2d3ec92
commit
44fc0e63bd
1 changed files with 1 additions and 4 deletions
|
|
@ -46,10 +46,7 @@ public extension LinkedItemSort {
|
|||
case .oldest:
|
||||
return [NSSortDescriptor(keyPath: \LinkedItem.createdAt, ascending: true)]
|
||||
case .recentlyRead:
|
||||
return [
|
||||
NSSortDescriptor(keyPath: \LinkedItem.readingProgress, ascending: false),
|
||||
NSSortDescriptor(keyPath: \LinkedItem.savedAt, ascending: false)
|
||||
]
|
||||
return [NSSortDescriptor(keyPath: \LinkedItem.savedAt, ascending: false)]
|
||||
case .recentlyPublished:
|
||||
return [NSSortDescriptor(keyPath: \LinkedItem.publishDate, ascending: false)]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue