fix sort by for /collections search (tests for filters in addition to query) #769