Skip to content
Permalink
Browse files

[processing] fixed ordering of outputs in models

fixes #13217
  • Loading branch information
volaya committed Sep 30, 2015
1 parent b3a124e commit 1d67ce7ca7f3c2e360fc790324627a1173685843
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/modeler/ModelerAlgorithm.py
@@ -16,6 +16,7 @@
* *
***************************************************************************
"""
from operator import attrgetter

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -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

0 comments on commit 1d67ce7

Please sign in to comment.
You can’t perform that action at this time.