Merge pull request #423 from Arthur-Milchior/fixReorder

Order by creation of note
This commit is contained in:
Damien Elmes 2020-01-16 18:47:12 +10:00 committed by GitHub
commit 81f7e634d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ AMBOSS MD Inc. <https://www.amboss.com/>
Aristotelis P. <https://glutanimate.com/contact>
Erez Volk <erez.volk@gmail.com>
zjosua <zjosua@hotmail.com>
Arthur Milchior <arthur@milchior.fr>
********************

View File

@ -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):

View File

@ -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: