Skip to content

Commit

Permalink
[processing] fixed ordering of outputs in models
Browse files Browse the repository at this point in the history
fixes #13217
  • Loading branch information
volaya committed Sep 30, 2015
1 parent b3a124e commit 1d67ce7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/modeler/ModelerAlgorithm.py
Expand Up @@ -16,6 +16,7 @@
* *
***************************************************************************
"""
from operator import attrgetter

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
Expand Down Expand Up @@ -208,6 +209,7 @@ def defineCharacteristics(self):
modelOutput.name = self.getSafeNameForOutput(alg.name, out)
modelOutput.description = alg.outputs[out].description
self.outputs.append(modelOutput)
self.outputs.sort(key=attrgetter("description"))

def addParameter(self, param):
self.inputs[param.param.name] = param
Expand Down

0 comments on commit 1d67ce7

Please sign in to comment.