sorts hostgroups to avoid update on each run