Order by colume
Order by colume

Hi
can some please tell me how to order by my PO number with highest being at the top, total knwowbie here, sorry probably seems like a really dumb question...
any information would be greatly appreciated
unction loadDataTable() {
dataTable = $('#DT_load').DataTable({
"ajax": {
"url": "/api/book",
"type": "GET",
"datatype": "json"
},
"columns": [
{ "data": "po", "width": "20%" },
{ "data": "creator", "width": "20%" },
{ "data": "company", "width": "20%" },
{
"data": "po",
This question has an accepted answers - jump to answer
Answers
Sounds like you might want to use
order
to set the default ordering for the table if it isn't right for you? But we'd need a link to a test case showing the issue to fully understand and help resolve it.Allan
Hi Allan
Thanks for responding, i managed to get it working with the order option, Thanks...