(#12349) Order module list output
This is necessary both for consistency for the user, and so that tests
pass every time. An acceptance test that passed when I ran it did not
when CI ran it because the output order was different. This fixes that.