Skip to content

Commit

Permalink
Sorted packages in each pane
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-McMillin committed Sep 10, 2024
1 parent 92edbd8 commit b2f532c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Depends/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ private void UpdateLists()
var selectedNode = _visibleDependencies[_dependenciesView.SelectedItem];

_runtimeDependsView.SetSource(_graph.Edges.Where(x => x.Start.Equals(selectedNode) && x.End is AssemblyReferenceNode)
.Select(x => x.End).ToImmutableList());
.Select(x => x.End).OrderBy(x => x.Id).ToImmutableList());
_packageDependsView.SetSource(_graph.Edges.Where(x => x.Start.Equals(selectedNode) && x.End is PackageReferenceNode)
.Select(x => new DependsListItemModel(x.End, x.Label)).ToImmutableList());
.Select(x => new DependsListItemModel(x.End, x.Label)).OrderBy(x => x.DisplayText).ToImmutableList());
_reverseDependsView.SetSource(_graph.Edges.Where(x => x.End.Equals(selectedNode))
.Select(x => new DependsListItemModel(x.Start, x.Label)).ToImmutableList());
.Select(x => new DependsListItemModel(x.Start, x.Label)).OrderBy(x => x.DisplayText).ToImmutableList());
}
}
}
Expand Down

0 comments on commit b2f532c

Please sign in to comment.