Skip to content

Commit

Permalink
Sorted nn layers in add layer dialog. Fixes #1009 (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Apr 27, 2017
1 parent 73f7ba3 commit 236c1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/visualizers/widgets/ArchEditor/ArchEditorWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ define([
createNews = Object.keys(types).map(type =>
this._creationNode(type, types[type], Decorator));

nodes.sort((a, b) => a.node.name < b.node.name ? -1 : 1);
nodes = nodes.concat(createNews);

// Sort by layer type
Expand Down

0 comments on commit 236c1aa

Please sign in to comment.