Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Initital sort #51

Closed
FlashPapa opened this issue May 4, 2022 · 2 comments
Closed

Initital sort #51

FlashPapa opened this issue May 4, 2022 · 2 comments

Comments

@FlashPapa
Copy link

Hi !
How can i set a default sort 'desc' on initialization ?
Thanks

@vincjo
Copy link
Owner

vincjo commented May 4, 2022

Hello,

It is not possible for now... 😕

I will develop an API to manage tables programmatically (I hope for sometime in September). But for the moment it is not possible.

In the meantime, you can order the JSON before sending it to datatable, or directly in the SQL query...
It's not very flexible

@FlashPapa
Copy link
Author

Ok, no problem @vincjo,
I do a _.reverse(data) before for the moment 😏
Thanks

@vincjo vincjo closed this as completed Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants