Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static members should be sorted first #3

Closed
craigktreasure opened this issue Oct 2, 2023 · 0 comments · Fixed by #4
Closed

Static members should be sorted first #3

craigktreasure opened this issue Oct 2, 2023 · 0 comments · Fixed by #4

Comments

@craigktreasure
Copy link
Owner

Version: 0.1.2

Code sample:

public class MyClass
{
    public int A() => 1;

    public static int B() => 1;
}

Should sort with static members to the top:

public class MyClass
{
    public static int B() => 1;

    public int A() => 1;
}
craigktreasure added a commit that referenced this issue Oct 2, 2023
This change changes the sort algorithm to sort by type, accessibility,
static, and then name. Fixes #3.

#do release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant