fix(sort): use default score sort when there is a query

instead of using the default sort set for resource.