Move comment to its proper place

This commit is contained in:
DarkPhoenix
2010-08-22 23:29:53 +04:00
parent 2fa85a129d
commit 3ffeaeba24

View File

@@ -237,9 +237,9 @@ class ShipBrowser(wx.Panel):
for fitID, fitName in cFit.getFitsWithShip(id):
self.searchView.AppendItem(childId, fitName, -1, data=wx.TreeItemData(("fit", fitID)))
# Sort fits by fit name, then ship name
foundFits = cMarket.searchFits(search)
if foundFits:
# Sort fits by fit name, then ship name
foundFits = sorted(foundFits, key=lambda tuple: tuple[2])
foundFits = sorted(foundFits, key=lambda tuple: tuple[1])
iconId = self.shipImageList.Add(bitmapLoader.getBitmap("ship_small", "icons"))