The attached patch adds a test to t/lib/manifest.t to check that the MANIFEST file is properly sorted. (And guess what? It isn't.)