Skip to content

Commit

Permalink
Sort the inputs after creating the config objects. Fixes #1061 (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Feb 1, 2018
1 parent 575bf49 commit 32c3d84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/visualizers/panels/ForgeActionButton/ForgeActionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ define([
targetNodeId = inputOp.getPointer('artifact').to;

return this._client.getNode(targetNodeId).getAttribute('name');
})
.sort();
});

// create config options from inputs
var inputOpts = inputNames.map((input, index) => {
Expand All @@ -451,7 +450,7 @@ define([
valueType: 'boolean',
readOnly: false
};
});
}).sort((a, b) => a.displayName < b.displayName ? -1 : 1);

var exportFormats = Object.keys(ExportFormatDict),
configDialog = new ConfigDialog(this.client, this._currentNodeId),
Expand Down

0 comments on commit 32c3d84

Please sign in to comment.