> Why 2 loops?
Because I just incrementally improved my variants and mechanically moved the code from `package--get-activatable-pkg` to `package-process-define-package` in hope of next improvements.
> And why is that sorting a problem?
Maybe putting it to docs as a "known bug" would be better.
It is just unintuitive behaviour.
I understand that tested code is the priority.
On the other hand, if the fb87d500 feature is little enough, why not revert and pretest without it? Or fix it and pretest fixed version.
>
Евгений, does this change fix your use case?
Yes, reverted fb87d500 fixes the case too.