automatically sort the MANIFEST if necessary

Instead of harrasing people to sort the manifest in our
tests, we can just automatically sort the manifest when it
changes.

That way the tests are actually testing that the auto-sort
worked, and not that our devs put the new file in the right
place.