Reorder data from json source

Reorder data from json source

Gnorro76Gnorro76 Posts: 2Questions: 2Answers: 0

Hi

I have a datatable populated with json object from a REST webservice.

It's everything ok, but now I would like to know if it's possible to reorder data client side clicking on column name.

I don't know if it's a right approach because returned data is paginated (so I display only record of that page). However I would like user to decide to reorder the current page.

This is my code now:
dataTable: {
"serverSide": true,
"lengthMenu": [
[10, 20, 50, 100, 150, -1],
[10, 20, 50, 100, 150, "All"]
],
"pageLength": 50,
"ajax": {
"url": "rest-webservice-url"
},
"dom": 'T<"clear">plirtpli',
"tableTools": {
"sSwfPath": datatableToolsFlashPath
},

thanks

This discussion has been closed.