codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Feature Request - Spade sorting: By type, then alphabetical (only)

Open ghost opened this issue 9 years ago • 5 comments

Whe sorting by type, then alphabetical, the actual behaviour is: By type, then by access, then alphabetical.

I would like to ask for an additional sort option for spade:

"When sorting by type, secondary sort should be by..." ( ) file order ( ) access then alphabetical ( ) alphabetical (only)

The second option is the current behaviour (labeled as "alphabetical"), but should be renamed as shown. The third option is new and reflects my feature request.

This FR is related to #322.

ghost avatar Oct 17 '16 14:10 ghost

Thanks for the suggestion. So would you never include access in the sort order, or is it lower in the sort order?

codecadwallader avatar Oct 17 '16 14:10 codecadwallader

The idea is to look and feel like Visual Studio's "Object Browser" when it's set to "Group By Member Type".

The use case is: "Digging a complex class and see all overloaded members at a glance." Since overloaded members share the same name they will show up coherently in an alphabetically sorted list.

Putting the access in a lower sort order wouldn't break my use case - so I thinks it's OK.

ghost avatar Oct 17 '16 14:10 ghost

The idea is this ???

I think is very usefull !!!

codemaid

darroyo avatar Dec 03 '16 17:12 darroyo

@darroyo: Exactly.

ghost avatar Dec 05 '16 08:12 ghost

Hi, voting for second sorting, shoud have option alphabetical (only), would be nice to choose if access modifiers should be ignored.

poliman avatar Aug 14 '23 19:08 poliman