Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gregli-msft committed Mar 9, 2025
1 parent 0d5db88 commit e4d232e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1298,10 +1298,9 @@ private static FormulaValue SortValueType<TPFxPrimitive, TDotNetPrimitive>(List<

var n1 = a.sortValue as TPFxPrimitive;
var n2 = b.sortValue as TPFxPrimitive;
CultureInfo culture;
if (n1.Value is string n1s && n2.Value is string n2s && (culture = runner.GetService<CultureInfo>()) != null)
if (n1.Value is string n1s && n2.Value is string n2s && runner.CultureInfo != null)
{
return culture.CompareInfo.Compare(n1s, n2s) * compareToResultModifier;
return runner.CultureInfo.CompareInfo.Compare(n1s, n2s) * compareToResultModifier;
}
else
{
Expand Down

0 comments on commit e4d232e

Please sign in to comment.