Skip to content
Permalink
Browse files
[processing] sort alphabetically the online scripts
  • Loading branch information
slarosa committed Oct 3, 2015
1 parent ed32f49 commit 67082a9588ff89e3815e0d8205bd720b48f62263
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/GetScriptsAndModels.py
@@ -175,7 +175,7 @@ def populateTree(self):
resources = readUrl(self.urlBase + 'list.txt').splitlines()
resources = [r.split(',') for r in resources]
self.resources = {f: (v, n) for f, v, n in resources}
for filename, version, name in resources:
for filename, version, name in sorted(resources, key=lambda kv: kv[2].lower()):
treeBranch = self.getTreeBranchForState(filename, float(version))
item = TreeItem(filename, name, self.icon)
treeBranch.addChild(item)

0 comments on commit 67082a9

Please sign in to comment.