Skip to content

Commit c8aa59b

Browse files
Stable sort workloads list
Make the sorting of `dotnet workload list` stable.
1 parent 53896c3 commit c8aa59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public override int Execute()
117117

118118
table.AddColumn(InformationStrings.WorkloadSourceColumn, workload => workload.Value);
119119

120-
table.PrintRows(installedWorkloads.AsEnumerable(), l => Reporter.WriteLine(l));
120+
table.PrintRows(installedWorkloads.AsEnumerable().OrderBy(workload => workload.Key), l => Reporter.WriteLine(l));
121121
}
122122

123123
Reporter.WriteLine();

0 commit comments

Comments
 (0)