Skip to content

Commit d29653c

Browse files
authored
Stable sort workloads list (#42247)
2 parents c58f4e9 + c8aa59b commit d29653c

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)