exhaustive search rather than sort