Skip to content

Commit

Permalink
Getting _ to sort to the top like it should (#1328)
Browse files Browse the repository at this point in the history
closes #1327
  • Loading branch information
belav authored Aug 23, 2024
1 parent 688aeb7 commit 2ed8622
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using SomeCompany._Word;
using SomeCompany.MWord;
using SomeCompany.ZWord;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using SomeCompany.MWord;
using SomeCompany.ZWord;
using SomeCompany._Word;
4 changes: 2 additions & 2 deletions Src/CSharpier/SyntaxPrinter/UsingDirectives.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ public int Compare(UsingDirectiveSyntax? x, UsingDirectiveSyntax? y)
return string.Compare(
x.Alias.ToFullString(),
y.Alias.ToFullString(),
StringComparison.OrdinalIgnoreCase
StringComparison.InvariantCultureIgnoreCase
);
}

return string.Compare(
x?.Name?.ToFullString(),
y?.Name?.ToFullString(),
StringComparison.OrdinalIgnoreCase
StringComparison.InvariantCultureIgnoreCase
);
}
}
Expand Down

0 comments on commit 2ed8622

Please sign in to comment.