Check that search query has 'sort' key.

This is needed for API queries lacking sort parameter.