Permalink
Browse files

Use invariant culture for string comparisons

  • Loading branch information...
schmalls committed Aug 18, 2016
1 parent 294307e commit 9e44dcfaf2afa981ef477248999b07575019990a
Showing with 2 additions and 1 deletion.
  1. +2 −1 Projects/CsProjArrange/CsProjArrange/AttributeKeyComparer.cs
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
@@ -48,7 +49,7 @@ public int Compare(IEnumerable<XAttribute> x, IEnumerable<XAttribute> y)
{
yValue = yAttribute.Value;
}
int result = string.Compare(xValue ?? string.Empty, yValue ?? string.Empty);
int result = string.Compare(xValue ?? string.Empty, yValue ?? string.Empty, StringComparison.InvariantCulture);
if (result != 0)
{
return result;

0 comments on commit 9e44dcf

Please sign in to comment.