Isort (run as commit hook)

Why is isort changing my imports from

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np

into

import matplotlib.pyplot as plt
import numpy as np

import matplotlib as mpl

PEP8 says:

Imports should be grouped in the following order:

Standard library imports.
Related third party imports.
Local application/library specific imports.

You should put a blank line between each group of imports.

What am I missing here?

I just learnt that this is a delibarate configuration choice:

[tool.isort]
known_pydata = "numpy, matplotlib.pyplot"
known_firstparty = "matplotlib,mpl_toolkits"
sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,LOCALFOLDER"
force_sort_within_sections = true

So question is answered (although this doesn’t seem to make much sense to me in this particular case).