sort correctly and exclude family 3