Skip to content

Auto sort results fetched from content API in DESC order with respect to entry id. #9567

@ssoftwares

Description

@ssoftwares

Feature request

Auto sort results fetched from content API in DESC order with respect to entry id.

Summary

Its very panic to pass _sort=id:DESC after every api endpoint to fetch result with the latest data on top, or to modify each controller and hardcore the query, I mean its obvious the api should return the data with latest rows on top and oldest in bottom , or if you can't make it default then atleast give some option in admin panel to set default sort for all Content Rest Api's

Why is it needed?

Its frustrating to add filter in every api endpoint and when integrating it with android app, we have to pass sort param in every api call.

Suggested solution(s)

Make sort DESC by Id or created date as default.

Note: I am not talking about admin panel, i know there is an option in admin panel to sort data with default filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions