Merge pull request #423 from Arthur-Milchior/fixReorder
Order by creation of note
This commit is contained in:
commit
81f7e634d1
@ -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>
|
||||
|
||||
********************
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user