alphabetize
OrderingAlphabetizes import siblings, dict-key blocks, and class-body members.
The ordering rules reorder sibling AST nodes by a deterministic key while preserving attached comments and inter-section gaps. The shared machinery lives in the Orderer primitive, with each rule supplying the classifier closure that names the sort key. A pinning shape lets specific items (class docstrings, module-level imports above a divider comment) stay in their authored slot while the rest of the siblings redistribute.
Alphabetizes import siblings, dict-key blocks, and class-body members.
Hoists module-level constants into a leading band below the imports and a trailing band beneath the definitions.
Partitions a module's imports into bare, external from, and local-package sections.
For the comment-attachment semantics and the gap_override machinery, see the Orderer primitive page. The # prose: keep directive (documented in Suppression Directives) opts a dict literal out of
sort-dict-keys facet declines the reorder across a whole project.