sort backups and hosts