Quote:
I'm confused on how combinators, tags, and classes get put into alphabetical order.
|
Good question. If you are asking about how to access the tool within Calibre, well, it is mercifully hidden within the Edit > Preferences menu within the Calibre Edit module.
If you are asking what alphabetical order means within a potential zoo of combinators, contextual selectors, pseudo-classes and pseudo-elements, then a lot of head-scratching awaits you when you actually test the tool.
Take a very simple contextual selector as an example: it is obvious that rules for
blockquote will come before
body in a sorted sheet. But where does the contextual selector
blockquote p (styling paragraphs within a blockquote) reside in the sort? Hint: nowhere near
blockquote.
Sorting a sheet may be of use if you are dealing with a huge jumble of CSS and you need to find something — but that something you want to find needs to be real simple and you need to remember to unsort immediately to retain control of the cascade.