Skip to content

Commit

Permalink
Merge pull request #3694 from nirvn/processing_sort_model_inputs
Browse files Browse the repository at this point in the history
[processing] sort model input parameters to avoid random ordering
  • Loading branch information
nyalldawson committed Oct 31, 2016
2 parents 3caccd5 + bec3792 commit 07b25af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/modeler/ModelerAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def defineCharacteristics(self):
for inp in list(self.inputs.values()):
if inp.param not in self.parameters:
self.parameters.append(inp.param)
self.parameters.sort(key=attrgetter("description"))

self.outputs = []
for alg in list(self.algs.values()):
if alg.active:
Expand Down

0 comments on commit 07b25af

Please sign in to comment.