Sort implant sets by name

This commit is contained in:
DarkPhoenix
2019-05-10 16:22:57 +03:00
parent 2ca418c287
commit 47c34f2186

View File

@@ -54,7 +54,7 @@ class AddImplantSet(ContextMenuSingle):
self.idmap = {}
for set in implantSets:
for set in sorted(implantSets, key=lambda i: i.name):
id = ContextMenuSingle.nextID()
mitem = wx.MenuItem(rootMenu, id, set.name)
bindmenu.Bind(wx.EVT_MENU, self.handleSelection, mitem)