#86408FailsafePackageManager does not sort packages when PackageStates.php file is missing
Description
This currently does not expose real problems, as the install
tool creates a new PackageStates.php later on and saves (and
implicitly sorts packages) using forceSortAndPackageStates().
FailsafePackageManager prevents saving PackageStates.php in
failsafe mode by overwriting sortAndSavePackageStates(). That works
to prevent saving, but also prevents sorting when initially loading
packages when PackageStates.php is missing.
Despite not exposing bugs right now, this should be fixed as
this is a) unclean and b) will become a problem when other failsafe
applications will be added.