codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

[Feature] Group By Attribute on Sorting

Open scottkuhl opened this issue 3 years ago • 1 comments

Description

It will be helpful if there was an option to group by attribute on sorting. The place I see this being the most beneficial is on Blazor components which can frequently have [Parameter], [CascadingParameter] and [Inject] attributes. These would stay grouped together by type.

image

Current behavior

    [Inject] public AppState AppState { get; set; } = default!;
    [Parameter, EditorRequired] public int Id { get; set; }
    [Inject] public IJSRuntime JS { get; set; } = default!;
    [CascadingParameter] public Mode? Mode { get; set; }
    [Parameter] public Model? Model { get; set; }
    [CascadingParameter] public int ThemeId { get; set; }

Expected behavior

    [Inject] public AppState AppState { get; set; } = default!;
    [Inject] public IJSRuntime JS { get; set; } = default!;

    [CascadingParameter] public Mode? Mode { get; set; }
    [CascadingParameter] public int ThemeId { get; set; }

    [Parameter, EditorRequired] public int Id { get; set; }
    [Parameter] public Model? Model { get; set; }

scottkuhl avatar Aug 18 '22 15:08 scottkuhl

Thanks for the suggestion, makes sense!

codecadwallader avatar Aug 19 '22 12:08 codecadwallader