fully evaluate reverse order of queries

Factors out computation of search group and calls the code once
for forward evaluation and wants with reversed word order.

The existing tests pass but I'd like to have more tests that specifically tests reverse word order. Some performance evaluation would be good as well.