Comment Comment by jreese We've written a number of words on "Why µsort", including a comparison to isort: https://usort.readthedocs.io/en/stable/why.htmlThe biggest reason is µsort's detection of sortable "blocks" of imports, and only sorting within those blocks to limit breaking changes, combined with use of proper parsing and CST manipulation to guarantee valid syntax after sorting. parent jreese 4 years ago
The biggest reason is µsort's detection of sortable "blocks" of imports, and only sorting within those blocks to limit breaking changes, combined with use of proper parsing and CST manipulation to guarantee valid syntax after sorting.