We have upgraded Nexus from OSS 3.21.1-01 to 3.25, and while our repositories looked fine in the browser, the REST API for search and assets seems to be completely ignoring the sorting parameters.
Returned exactly the same result with direction as 'asc'. It seemed to be returning the same order as it is in the browser.
We have observed the same behavior with two maven and one npm repository, so it doesn't seem to be connected to the repo type.
As it is, it's impossible to get the 'latest' artifact with version 3.25