From 37e022a64dd518653a5f97401fc8ecc31cde0a4d Mon Sep 17 00:00:00 2001 From: John Date: Mon, 6 Dec 2021 16:05:06 +0000 Subject: [PATCH] B2021-144 ROs were not always sorted on the Insert RO panel in the procedure editor. --- PROMS/Volian.Controls.Library/DisplayRO.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayRO.cs b/PROMS/Volian.Controls.Library/DisplayRO.cs index a0591acf..cf1520a4 100644 --- a/PROMS/Volian.Controls.Library/DisplayRO.cs +++ b/PROMS/Volian.Controls.Library/DisplayRO.cs @@ -435,7 +435,8 @@ namespace Volian.Controls.Library double dbl2; //B2017-232 changed from Parse to TryParse. AEP had figure title that had a number containing two periods which caused Parse to error if (double.TryParse(match1.ToString(), out dbl1) && double.TryParse(match2.ToString(), out dbl2)) - return dbl1 > dbl2; + if (dbl1 != dbl2) //B2021-144 if the numerical is identical default to the string comparision + return dbl1 > dbl2; } return String.Compare(value1, value2, true) > 0; }