Sort by groups first, then name

This commit is contained in:
cncfanatics
2010-08-23 23:26:28 +02:00
parent 22cc5dc243
commit b9857157b4
2 changed files with 11 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ class Market():
items = []
for item in results:
if item.category.name in self.SEARCH_CATEGORIES:
items.append((item.ID, item.name, item.metaGroup.ID if item.metaGroup else 1, item.icon.iconFile if item.icon else ""))
items.append((item.ID, item.name, item.group.name, item.metaGroup.ID if item.metaGroup else 1, item.icon.iconFile if item.icon else ""))
return items