svelte-simple-datatables icon indicating copy to clipboard operation
svelte-simple-datatables copied to clipboard

Initital sort

Open FlashPapa opened this issue 3 years ago • 2 comments

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

FlashPapa avatar May 04 '22 08:05 FlashPapa

Hello,

It is not possible for now... :confused:

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

vincjo avatar May 04 '22 09:05 vincjo

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

FlashPapa avatar May 04 '22 09:05 FlashPapa