Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 3c6f4ad

Browse files
committed
quick default sort in the CategorizedFarmReportFarmPlugin on servername and projectname
1 parent 3dbcefd commit 3c6f4ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/WebDashboard/Plugins/FarmReport/CategorizedFarmReportFarmPlugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System;
1717
using ThoughtWorks.CruiseControl.Core;
1818
using System.Web;
19+
using System.Linq;
1920

2021

2122
[ReflectorType("categorizedFarmReportFarmPlugin")]
@@ -77,7 +78,7 @@ public IResponse Execute(ICruiseRequest request)
7778

7879
var categories = new SortedDictionary<string, CategoryInformation>();
7980

80-
foreach (var row in gridRows)
81+
foreach (var row in gridRows.OrderBy( s=> s.ServerName).ThenBy( p => p.Name))
8182
{
8283
var rowCategory = row.Category;
8384
CategoryInformation categoryRows;

0 commit comments

Comments
 (0)