mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
[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:
parent
e7f4f3b8a0
commit
f5fccc0ca5
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user