Search Service throws 404 exception when query have a Sort field

If the query to Search Service have a Sort field and the query returns no data, it throws a 404 failure return instead of a 200 with empty object.

Example Query:

{
   "kind": "osdu:wks:work-data--risk:*",   
   "query": "",
   "sort": {
        "field": [
            "data.Name"
        ],
        "order": [
            "ASC"
        ]
    } 
}

Current error message:

{
    "code": 404,
    "reason": "Not Found",
    "message": "Resource you are trying to find does not exists"
}
Edited by Solomon Ayalew