diff --git a/python/maps/scorn/castle_read.py b/python/maps/scorn/castle_read.py index b43e1f9ef..99f7c0346 100644 --- a/python/maps/scorn/castle_read.py +++ b/python/maps/scorn/castle_read.py @@ -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)