diff --git a/html-src/gen-html.py b/html-src/gen-html.py
index 0d76d3ef..e6d05099 100755
--- a/html-src/gen-html.py
+++ b/html-src/gen-html.py
@@ -242,7 +242,7 @@ def gen_rules_html():
file=out_rules_alt)
with open('rules_alternate.html', 'r') as file:
print(file.read(), file=out_rules_alt)
- altnames.sort()
+ altnames.sort(key=lambda x: x[0].lower())
for name, fn in altnames:
print('
%s'
% (fn, name), file=out_rules_alt)
diff --git a/pysollib/gamedb.py b/pysollib/gamedb.py
index 4f6df1cb..050573e1 100644
--- a/pysollib/gamedb.py
+++ b/pysollib/gamedb.py
@@ -809,13 +809,13 @@ class GameManager:
if self.__games_by_name is None:
l1, l2, l3 = [], [], []
for id, gi in self.__games.items():
- name = gi.name # .lower()
+ name = gi.name .lower()
l1.append((name, id))
if gi.name != gi.short_name:
- name = gi.short_name # .lower()
+ name = gi.short_name.lower()
l2.append((name, id))
for n in gi.altnames:
- name = n # .lower()
+ name = n.lower()
l3.append((name, id, n))
l1.sort()
l2.sort()
diff --git a/pysollib/tile/selectcardset.py b/pysollib/tile/selectcardset.py
index 7c0c3c11..5e4ef711 100644
--- a/pysollib/tile/selectcardset.py
+++ b/pysollib/tile/selectcardset.py
@@ -519,7 +519,7 @@ class SelectCardsetDialogWithPreview(MfxDialog):
if self.app.checkSearchString(self.criteria.name,
cardset.name):
results.append(cardset.name)
- results.sort()
+ results.sort(key=lambda x: x.lower())
pos = 0
for result in results:
self.list.insert(pos, result)
diff --git a/pysollib/tile/selectgame.py b/pysollib/tile/selectgame.py
index 3a858d90..0545a12d 100644
--- a/pysollib/tile/selectgame.py
+++ b/pysollib/tile/selectgame.py
@@ -632,7 +632,7 @@ class SelectGameDialogWithPreview(SelectGameDialog):
for altname in game.altnames:
if self.app.checkSearchString(self.criteria.name, altname):
results.append(altname)
- results.sort()
+ results.sort(key=lambda x: x.lower())
pos = 0
for result in results:
self.list.insert(pos, result)
diff --git a/pysollib/tile/selecttile.py b/pysollib/tile/selecttile.py
index 03ae9bac..1a56c46c 100644
--- a/pysollib/tile/selecttile.py
+++ b/pysollib/tile/selecttile.py
@@ -318,7 +318,7 @@ class SelectTileDialogWithPreview(MfxDialog):
if self.app.checkSearchString(self.criteria.name,
tile.name):
results.append(tile.name)
- results.sort()
+ results.sort(key=lambda x: x.lower())
pos = 0
for result in results:
self.list.insert(pos, result)