How to make Deep Sort

System Information
  • Strapi Version: 3.3.2
  • Operating System: Heruko (with AWS s3upload)
  • Database: MongoDB
  • Node Version: v12.18.4
  • NPM Version: 6.14.6
  • Yarn Version:

Let’s say I have modelA with a ForeignKey on modelB
This allows me to sort my query and I can also filter deep relations when using

curl -X GET "http://localhost:1337/modelA?modelB.field_from_model_b=example_value

But I can’t find how to sort on modelB.some_field.
If I write ?_sort=modelA.field,modelB.some_field:ASC'

it seems like it doesn’t do anything (besides sorting only by the modelA.field).
It looks like the deep sort is using the updatedAt files by default, any way to change that?

Seems like there is no option to make a deep sort (at least for version 3.3.2). If someone wants to make a deep sort, he will have to sort it on the client side. That’s the solution that I found…