Sortby in Business Logic

How to use sortBy while designing api with custom business logic.??

i want to retrieve all objects from a table in sorted order of Created

Hello,

When you use Backendless API in Business logic, it is exactly the same as you’d use it on the client side. It would be the same Backendless.Data.of( Class-or-TableName ).find( dataQueryBuilder ) call. The dataQueryBuilder must be configured with the setSortBy method per the documentation:

JS: https://backendless.com/docs/js/doc.html#data_general_api
Java: https://backendless.com/docs/android/doc.html#data_general_api

Regards,
Mark