Skip to content

Commit

Permalink
Sort usings with OrdinalIgnoreCase (#1060)
Browse files Browse the repository at this point in the history
* sort using using OrdinalIgnoreCase
* added test files
  • Loading branch information
loraderon authored Dec 6, 2023
1 parent 1a39586 commit 935e36c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using Aaword;
using AWord;
using Bbword;
using BWord;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using AWord;
using BWord;
using Bbword;
using Aaword;
4 changes: 2 additions & 2 deletions Src/CSharpier/SyntaxPrinter/UsingDirectives.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ public int Compare(UsingDirectiveSyntax? x, UsingDirectiveSyntax? y)
return String.Compare(
x.Alias.ToFullString(),
y.Alias.ToFullString(),
StringComparison.Ordinal
StringComparison.OrdinalIgnoreCase
);
}

return String.Compare(
x.Name.ToFullString(),
y.Name.ToFullString(),
StringComparison.Ordinal
StringComparison.OrdinalIgnoreCase
);
}
}
Expand Down

0 comments on commit 935e36c

Please sign in to comment.