Sort ROs in Groups

Use generic comparison from DisplayRO to sort ROs
Make GreaterValue public so that it can be used for DisplayReports and DisplaySearch to sort ROs consistently.
Remove debug printout
This commit is contained in:
Rich
2014-02-06 18:36:57 +00:00
parent 5e621b46a6
commit 4fd9ef75c4
4 changed files with 30 additions and 24 deletions

View File

@@ -369,7 +369,7 @@ namespace Volian.Controls.Library
}
private static Regex _RegExGetNumber = new Regex(@"^ *[+-]?[.,0-9/]+(E[+-]?[0-9]+)?");
// Sort by numeric value if possible, Otherwise sort alphabetically.
private bool GreaterValue(string value1, string value2)
public static bool GreaterValue(string value1, string value2)
{
Match match1 = _RegExGetNumber.Match(value1);
Match match2 = _RegExGetNumber.Match(value2);