Order by colume

Order by colume

jbcom41@outlook.comjbcom41@outlook.com Posts: 4Questions: 3Answers: 0

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

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    Answer ✓

    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

  • jbcom41@outlook.comjbcom41@outlook.com Posts: 4Questions: 3Answers: 0

    Hi Allan

    Thanks for responding, i managed to get it working with the order option, Thanks...

This discussion has been closed.