belav / csharpier

CSharpier is an opinionated code formatter for c#.
https://csharpier.com
MIT License
1.43k stars 99 forks source link

Using aliases sorting is not always the same depending on the input order #1168

Closed Araxor closed 9 months ago

Araxor commented 9 months ago

Input 1:

using A = string;
using B = string;
using C = string;
using D = string;

Output 1:

using D = string;
using C = string;
using B = string;
using A = string;

Input 2:

using D = string;
using C = string;
using B = string;
using A = string;

Output 2:

using A = string;
using B = string;
using C = string;
using D = string;

Input 3:

using C = string;
using D = string;
using B = string;
using A = string;

Output 3:

using A = string;
using B = string;
using D = string;
using C = string;

Expected behavior: All inputs should have the same output (output 2 in the examples above).