A weird behaviour in Graphql sorting

System Information
  • Strapi Version: “@strapi/strapi”: “4.10.5”,“@strapi/plugin-graphql”: “4.10.5”,
  • Operating System: node:16-bullseye-slim container
  • Database:
  • Node Version: 16
  • NPM Version:
  • Yarn Version:

In my graphql request eventStartDate items are sorted as shown image below in section A:

When I move the sorting to the related item’s body it gives error (section B and C)

I could not find the root of the problem. What can cause it?

thanks in advance