codemaid
codemaid copied to clipboard
CodeMaidSpade: 2-level-sort, first by type then by alphabet
Environment
- Visual Studio version: 2017 Community
- CodeMaid version: 10.4
- Code language: C#
Description
Currently, On CodeMaid Spade there is only 2 simple-sort-mode: sort by type or sort by alphabet, but most of the time, we need it to separate by category then sort by alphabet
Steps to recreate
n/a
Current behavior
Currently, On CodeMaid Spade there is only 2 simple-sort-mode: sort by type or sort by alphabet,
Expected behavior
I think it should be separate by category then sort by alphabet
Thanks for the suggestion. It sounds like you want to use the existing sort by type mode, but have a new option for secondary sorting by alphabet (vs. the current sorting by line).
Great, that what I want to say! Thanks for understanding! Sent via the BlackBerry Hub for Android From: [email protected]: January 4, 2018 19:14To: [email protected]: [email protected]: [email protected]; [email protected]: Re: [codecadwallader/codemaid] CodeMaidSpade: 2-level-sort, first by type then by alphabet (#511) Thanks for the suggestion. It sounds like you want to use the existing sort by type mode, but have a new option for secondary sorting by alphabet (vs. the current sorting by line).
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
Seems like sort by type then alphabet already exists.

But it also does group by access modifier (private, protected, public).

It would be nice if we could just get sort by type then alphabet and ignore access modifiers.
To cover all possible requirements Codemaid could offer a system where you can define your own sorting order. This could be a list where you can
- add
- remove
- reorder
entries. And you would be able to choose
- type
- alphabet
- alphabet ignore leading underscore
- access modifier
- ...
and it would sort based on what sorting methods are in the list and based on the order of the given methods.
My choice would then be [type, alphabet]. Currently type then alphabet is [type, access modifier, alphabet]. Someone else might like [alphabet ignore leading underscore, access modifier]. And so on.
Not sure if all cases can be covered by this though.
Hello, is it still the same? cannot sort by: "type then alphabet and ignore access modifiers." If still not implemented, voting for it :) would be nice to choose if access modifiers should be ignored.