codemaid
codemaid copied to clipboard
[Feature] Group By Attribute on Sorting
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.

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; }
Thanks for the suggestion, makes sense!