Which .js file we need to edit for Descending sort while clicking column header
Which .js file we need to edit for Descending sort while clicking column header

Hi
For Datatables, descending sort mechanism is there any short code ? My requirement is while clicking the column header i need descending sort rather than ascending as default.
If there is no short code in wordpress, Please let me know which javascript file i need to add the below code.
"columnDefs": [
{ "sorting": [ "desc", "asc" ], "targets": [ "_all" ] }
],
From c-Panel i am confused to update the code as which javascript file i need to add the code snippet.
Another doubt is, is any way to add this update in a separate js file so that even the plugin updates won't affect the changes.
Please help me.
Regards
Answers
Can anyone help the above issue I am facing. I have found some files related to the plugin.
Inside plugins folder, tablepress-datatables-columnfilter/columnfilter.js
another one plugins/tablepress-datatables-column-filter-widgets/columnfilter.js
Out of these which file i need to update the code for sort functionality
Your columnDefs settings belong in your own DataTables initialization code.
Ok, Thank you. I created using wordpress tablepress plugin. This is the reason i am not identifying the javascript file name which is automatically created by wordpress.
This blog post might help - it talks about DataTables/Editor and Wordpress.
Thank you colin