mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
limit initial sort selection to new cards
https://github.com/ankidroid/Anki-Android/issues/8172
This commit is contained in:
parent
c1316bb65f
commit
3b067c7a66
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ impl Collection {
|
|||
/// This creates a transaction - we probably want to split it out
|
||||
/// in the future if calling it as part of a deck options update.
|
||||
pub fn sort_deck(&mut self, deck: DeckID, random: bool) -> Result<()> {
|
||||
let cids = self.search_cards(&format!("did:{}", deck), SortMode::NoOrder)?;
|
||||
let cids = self.search_cards(&format!("did:{} is:new", deck), SortMode::NoOrder)?;
|
||||
let order = if random {
|
||||
NewCardSortOrder::Random
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue