my ($chn, $ex) = sort ($hEntry->{chain}, $hEntry->{exists});