fixes 3107 - use label instead of name for sorting so it works with nested hostgroups