Fixed: SearchHandlerTest relies on specific ordering

If elements are not returned in the same order by backends, some tests
fail because of the hardcoded order.

Fixing this by sorting the result before comparison.