Fix ghc-pkg list --simple-output not being alphabetical (#8245).