Broken sort=id:desc?

System Information
  • Strapi Version: 4.8.2
  • Operating System: Linux
  • Database: Postgres

After I upgrade my Strapi to 4.8.2, the sort=id:desc does not seem to work anymore, I was able to sort based on keys with in the attributes tag but not on id.

For example: I was able to sort by updatedAt but not id using this :thinking:

"data": [
            "id": 134,
            "attributes": {

Before I update to 4.8.2 sort by id works, and I couldn’t find any documentations in Github release, can any one help me to figureout why?


Yes I am having the same issue. id:asc and id:desc aren’t doing anything. upgrading Strapi is a risky prop…

1 Like

Yeah, my temp solution was to switch to order by createdBy. Seems like the only way around it :frowning:

Please make a github issue for this

#16135 : Strapi `sort` does not work on `id` on REST endpoint · Issue #16135 · strapi/strapi · GitHub