Fix character list sorting (https://forums.eveonline.com/default.aspx?g=posts&m=6940327#post6940327)
This commit is contained in:
@@ -93,7 +93,7 @@ class CharacterEntityEditor(EntityEditor):
|
||||
|
||||
def getEntitiesFromContext(self):
|
||||
sChar = Character.getInstance()
|
||||
charList = sorted(sChar.getCharacterList(), key=lambda c: c.name)
|
||||
charList = sorted(sChar.getCharacterList(), key=lambda c: (not c.ro, c.name))
|
||||
|
||||
# Do some processing to ensure that we have All 0 and All 5 at the top
|
||||
all5 = sChar.all5()
|
||||
|
||||
@@ -125,7 +125,7 @@ class CharacterSelection(wx.Panel):
|
||||
activeChar = self.getActiveCharacter()
|
||||
|
||||
choice.Clear()
|
||||
charList = sChar.getCharacterList()
|
||||
charList = sorted(sChar.getCharacterList(), key=lambda c: (not c.ro, c.name))
|
||||
picked = False
|
||||
|
||||
for char in charList:
|
||||
|
||||
Reference in New Issue
Block a user