Sort rankings with case unsensitivity.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20209 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2016-01-02 13:57:27 +00:00
parent e3b6fd390c
commit 99ffa0637f
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ elif targetrank >= 10:
player.Message("Herein are recorded those who have obtained the rank of " + rankname + " in the Kingdom of Scorn:")
playercount = 0
for noble in nobledata.get_keys():
names = nobledata.get_keys()
names.sort(key = str.lower)
for noble in names :
record = nobledata.get_record(noble)
if int(record['rank']) == targetrank:
player.Message(prefix+noble+" "+record['title']+suffix)