Skip to content

Commit

Permalink
Cherry-pick: Updated sort order of node auto complete suggestions (#1…
Browse files Browse the repository at this point in the history
…1303) (#11305)

* Display input port type specific default suggestions only (#11268)

* input port type specific default suggestions

* test fix

* Node AutoComplete suggestions sorted alphabetically within the same group (#11280)


* add/update tests

* Updated sort order of node auto complete suggestions  (#11303)

* update sort order

Co-authored-by: Ashish Aggarwal <[email protected]>
  • Loading branch information
zeusongit and Zeus1717 authored Dec 2, 2020
1 parent cf0182f commit 578a10b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ internal IEnumerable<NodeSearchElement> GetMatchingSearchElements()
elements.Sort(comparer);
//then sort by node library group (create, action, or query node)
//this results in a list of elements with 3 major groups(create,action,query), each group is sub sorted into types and then sorted by name.
return elements.OrderBy(x => x.Group).ThenBy(x => x.Name);


return elements.OrderBy(x => x.Group).ThenBy(x => x.OutputParameters.FirstOrDefault().ToString()).ThenBy(x => x.Name);
}

/// <summary>
Expand Down

0 comments on commit 578a10b

Please sign in to comment.