mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Ensure cloze numbers sort in order
https://forums.ankiweb.net/t/anki-23-12-beta/37771/103
This commit is contained in:
parent
db93939ded
commit
45abf1c7e8
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ fn card_order_from_sort_column(column: Column, timing: SchedTimingToday) -> Cow<
|
|||
Column::Cards => concat!(
|
||||
"coalesce((select pos from sort_order where ntid = n.mid and ord = c.ord),",
|
||||
// need to fall back on ord 0 for cloze cards
|
||||
"(select pos from sort_order where ntid = n.mid and ord = 0)) asc"
|
||||
"(select pos from sort_order where ntid = n.mid and ord = 0)) asc, ord asc"
|
||||
)
|
||||
.into(),
|
||||
Column::Deck => "(select pos from sort_order where did = c.did) asc".into(),
|
||||
|
|
Loading…
Reference in a new issue