Order json results with Editor PHP server side library

Order json results with Editor PHP server side library

perrotinperrotin Posts: 39Questions: 9Answers: 1

Hi

I've been looking for a method to change the default order of the json results with the editor PHP Library ( I know it's easy to change order on the client side, but I do need the custom order in the json.)

Thanks
Julian

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Is it server-side processing you are using? If so, the order property can be used to define the order.

    Allan

  • perrotinperrotin Posts: 39Questions: 9Answers: 1

    Thanks for the answer Allan, but what I'm looking for is to order the json with the editor's PHP Library (http://editor.datatables.net/manual/php/) , independently from datatable.js.

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Thanks for the clarification. The Editor PHP class doesn't actually have an ordering option as I've generally assumed that the table would be ordered by the columns on the client-side.

    Can I ask what the use case is that this isn't an option?

    Thanks,
    Allan

This discussion has been closed.