Sorting using server side

Sorting using server side

DrakoDrako Posts: 73Questions: 0Answers: 0
edited October 2011 in General
I know there are many topics about this and most of them say that it isnt possible to sort client side if you are using server. However im wondering if its possible to sort the output before returning it.

I have data like this and i want it to be on this order

004/2011
003/2011
002/2011
001/2011
002/2010
001/2010


thanks!

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    you can sort whatever you want however you want in the SQL or the PHP code that retrieves the SQL results.
  • jcrawfordjcrawford Posts: 172Questions: 0Answers: 0
    yep this is not something you would do in DataTables but rather your server side code.
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    got it!! i was doing something wrong yesteday, but i managed to change the way i want!!

    thanks!
This discussion has been closed.