EZP-22786: tests: use sort clause when number of results is greater than limit
EZP-22786: assert total count
Merge pull request #830 from ezsystems/fix-EZP-22786-sort-search-result

Fix EZP-22786: Legacy SearchHandlerTest::testStatusFilter fails on php 5.5.11