News for hackers. Stuff that matters.
Re:Guietta – Python module to create simple GUIs by spappal on Saturday July 04, 2020 @12:33PM (#23733337)
And PEP 8 doesn't mention sorting the imports. There are even counterexamples which aren't alphabetically sorted. It does mention grouping though.

Since Python imports can have side effects, the order can matter. But to the extent that it doesn't break anything, alphabetically sorted groups seems deterministic and readable.

I think this might be the most popular implementation for auto-sorting: https://pypi.org/project/isort/

Re:Guietta – Python module to create simple GUIs by StavrosK on Saturday July 04, 2020 @12:38PM (#23733373)
isort is the most popular, but this is the best by far:

https://github.com/asottile/reorder_python_imports