This should ensure directives are executed in a consistent order across runs.
Sign contributor agreement
Sort modules by name during scan for repeatability.
Note to self: make sure this doesn't materially impact people who don't care about import ordering (although by definition caring about it is the beginning of the end).
Closing as not sufficiently important.