diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 28bd03e12..abc00239e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -22,6 +22,7 @@ AMBOSS MD Inc. Aristotelis P. Erez Volk zjosua +Arthur Milchior ******************** diff --git a/pylib/anki/sched.py b/pylib/anki/sched.py index 33e1ef347..2a77e38c2 100644 --- a/pylib/anki/sched.py +++ b/pylib/anki/sched.py @@ -1584,7 +1584,7 @@ and due >= ? and queue = 0""" self.sortCards(cids, shuffle=True) def orderCards(self, did): - cids = self.col.db.list("select id from cards where did = ? order by id", did) + cids = self.col.db.list("select id from cards where did = ? order by nid", did) self.sortCards(cids) def resortConf(self, conf): diff --git a/pylib/anki/schedv2.py b/pylib/anki/schedv2.py index 70ed31774..04ab59dff 100644 --- a/pylib/anki/schedv2.py +++ b/pylib/anki/schedv2.py @@ -1832,7 +1832,7 @@ and due >= ? and queue = 0""" self.sortCards(cids, shuffle=True) def orderCards(self, did: int) -> None: - cids = self.col.db.list("select id from cards where did = ? order by id", did) + cids = self.col.db.list("select id from cards where did = ? order by nid", did) self.sortCards(cids) def resortConf(self, conf) -> None: