[CA-228054] Performance graph datasources aren't sorted naturally

Replace the string comparison used when sorting columns of the datasources list table with a natural compare, which sorts these cases correctly.
This commit is contained in:
Callum McIntyre 2016-11-10 11:41:30 +00:00
parent e7f4f3b8a0
commit f5fccc0ca5

View File

@ -37,6 +37,7 @@ using System.Linq;
using System.Windows.Forms;
using XenAdmin.Actions;
using XenAdmin.Controls.CustomDataGraph;
using XenAdmin.Core;
namespace XenAdmin.Dialogs
@ -266,7 +267,7 @@ namespace XenAdmin.Dialogs
}
else
{
result = string.Compare(row1.Cells[columnIndex].Value.ToString(),
result = StringUtility.NaturalCompare(row1.Cells[columnIndex].Value.ToString(),
row2.Cells[columnIndex].Value.ToString());
}