From 35360df68dbd40fe986436c93084653b0f65d8aa Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 27 Nov 2018 16:44:23 +1000 Subject: [PATCH] case-insensitive field sort in find dupes --- aqt/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 86816c006..619545031 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -1774,7 +1774,8 @@ update cards set usn=?, mod=?, did=? where id in """ + scids, frm = aqt.forms.finddupes.Ui_Dialog() frm.setupUi(d) 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) self._dupesButton = None # links