Getting the data sequentially in the api as we define in the interface

System Information
  • Strapi Version: 4.24.2
  • Database: Postgres
  • Node Version: v18.18.2
  • NPM Version: 9.8.1

I want to get the components in the same order in the api as we define it in the interface. For example: if I have a singletype page and it has components or field in order author_name(text field), hero_image(image field), about_us(component), now I want to get the data in the api in the same order.

It works only if we have a few components but we I have text field, images and components then it doesn’t work