order by template after note id in filtered decks
This brings the behaviour a bit closer to the default ordering of new cards when they are reset, and is better than an undefined template order. But it's a stopgap solution, and in the long run, filtered decks need a bit of a rethink with the improved ordering than v3 has brought.
This commit is contained in:
parent
e336f5a239
commit
afff4fc437
@ -14,7 +14,7 @@ pub(crate) fn order_and_limit_for_search(term: &FilteredSearchTerm, today: u32)
|
|||||||
FilteredSearchOrder::IntervalsAscending => "ivl",
|
FilteredSearchOrder::IntervalsAscending => "ivl",
|
||||||
FilteredSearchOrder::IntervalsDescending => "ivl desc",
|
FilteredSearchOrder::IntervalsDescending => "ivl desc",
|
||||||
FilteredSearchOrder::Lapses => "lapses desc",
|
FilteredSearchOrder::Lapses => "lapses desc",
|
||||||
FilteredSearchOrder::Added => "n.id",
|
FilteredSearchOrder::Added => "n.id, c.ord",
|
||||||
FilteredSearchOrder::ReverseAdded => "n.id desc",
|
FilteredSearchOrder::ReverseAdded => "n.id desc",
|
||||||
FilteredSearchOrder::Due => "c.due, c.ord",
|
FilteredSearchOrder::Due => "c.due, c.ord",
|
||||||
FilteredSearchOrder::DuePriority => {
|
FilteredSearchOrder::DuePriority => {
|
||||||
|
Loading…
Reference in New Issue
Block a user