Use note order when previewing

https://forums.ankiweb.net/t/card-in-disorder/37534/2
This commit is contained in:
Damien Elmes 2023-11-23 17:50:42 +10:00
parent be1f889211
commit a50b086b33

View File

@ -247,12 +247,7 @@ fn preview_config(deck_name: String, days: u32) -> FilteredDeck {
.and_flat(SearchNode::AddedInDays(days)) .and_flat(SearchNode::AddedInDays(days))
.and_flat(SearchNode::from_deck_name(&deck_name)) .and_flat(SearchNode::from_deck_name(&deck_name))
.write(); .write();
custom_study_config( custom_study_config(false, search, FilteredSearchOrder::Added, None)
false,
search,
FilteredSearchOrder::OldestReviewedFirst,
None,
)
} }
fn cram_config(deck_name: String, cram: &Cram) -> Result<FilteredDeck> { fn cram_config(deck_name: String, cram: &Cram) -> Result<FilteredDeck> {