Natural sorting as default sorting
Natural sorting as default sorting
buelentx
Posts: 3Questions: 2Answers: 0
Hello everbody,
I have a page with 4 datatables.
How can I set natural sorting ( " type: 'natural' '') as default sorting for all columns.
Thanks.
Best Regards
Buelentx
This discussion has been closed.
Answers
You can set defaults and make them dependent on the page you are on. Since there is a page refresh every time the user changes the page this works. I use this to set different defaults if the user changes the language of the site.
Something like this
Since I don't use natural sorting myself I cannot guarantee that this works. Maybe give it a try?!
I think you might need to use:
I'm not sure that you can use
columnDefs
in the defaults. I'll need to check into that...Allan