case-insensitive field sort in find dupes

This commit is contained in:
Damien Elmes 2018-11-27 16:44:23 +10:00
parent 5bce218312
commit 35360df68d

View File

@ -1774,7 +1774,8 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
frm = aqt.forms.finddupes.Ui_Dialog() frm = aqt.forms.finddupes.Ui_Dialog()
frm.setupUi(d) frm.setupUi(d)
restoreGeom(d, "findDupes") restoreGeom(d, "findDupes")
fields = sorted(anki.find.fieldNames(self.col, downcase=False)) fields = sorted(anki.find.fieldNames(self.col, downcase=False),
key=lambda x: x.lower())
frm.fields.addItems(fields) frm.fields.addItems(fields)
self._dupesButton = None self._dupesButton = None
# links # links