Fix init import_structure sorting
# What does this PR do?

The custom script we have that sorts the imports in our inits was broken since a while ago. This PR fixes it.
_The documentation is not available anymore as the PR was closed or merged._