sassdoc icon indicating copy to clipboard operation
sassdoc copied to clipboard

Default "undefined" group won't sort alphabetically in groups list

Open ghost opened this issue 10 years ago • 2 comments
trafficstars

The default undefined: General group in SassDoc settings will always be appended to the grouping list on the left-hand column, even if it's overwritten by anything else in .sassdocrc file. Could this be allowed to sort alphabetically like the rest of the groups for consistency?

ghost avatar Apr 14 '15 23:04 ghost

This is because groups are sorted by slug and not display name... SassDoc core is not aware of the display name, only the theme is.

And even the sort theme configuration option is sorting on group and not groupName so it's not a solution either.

This could be fixed by adding a groupName sort support in sassdoc-extras, and providing a custom sort criteria in SassDoc configuration, but this wouldn't change anything with default sort at core level.

valeriangalliat avatar Apr 16 '15 07:04 valeriangalliat

Thank you!

indrekpaas avatar Apr 16 '15 08:04 indrekpaas

No need to close the issue yet, this is not fixed! I was just giving technical input on the subject if it can help.

So, no fix have been implemented yet, and the sassdoc-extras one is not a silver bullet (it don't affect the default sort)... I'd like @pascalduez opinion on this too. :)

valeriangalliat avatar Apr 16 '15 08:04 valeriangalliat