we need to tell libanki to sort now

This commit is contained in:
Damien Elmes 2012-05-23 20:26:45 +09:00
parent 2f6db69113
commit 528d29511b

View file

@ -111,7 +111,8 @@ class DataModel(QAbstractTableModel):
# the db progress handler may cause a refresh, so we need to zero out # the db progress handler may cause a refresh, so we need to zero out
# old data first # old data first
self.cards = [] self.cards = []
self.cards = self.col.findCards(txt, self.browser.mw.pm.profile['fullSearch']) self.cards = self.col.findCards(txt, order=True)
#self.browser.mw.pm.profile['fullSearch'])
#print "fetch cards in %dms" % ((time.time() - t)*1000) #print "fetch cards in %dms" % ((time.time() - t)*1000)
if reset: if reset:
self.endReset() self.endReset()