Sort packages. Remove dependency on FS behavior