Sort rankings with case unsensitivity.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20209 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
e3b6fd390c
commit
99ffa0637f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue