[COOK-3696] - sort hostgroups so they don't get updated on each run