I want to show the last item added at top , don't want the default sorting of datatable.

I want to show the last item added at top , don't want the default sorting of datatable.

ehsanhamehsanham Posts: 2Questions: 1Answers: 0

Hi, I newly used Datables for my project to show a list generated by a Wordpress Plugin , now my problem is default datatable sort . i want the last item to show as the first one in the table .
now its sorted based on default as datatables want and i dono how to achieve what i need .
Would you please help me with this issue , Thank you very much.

Answers

  • kthorngrenkthorngren Posts: 13,136Questions: 25Answers: 3,085

    You can use the ordering option to turn off Datatables ordering and show the table in the order received. Is this what you want to do?

    Kevin

  • ehsanhamehsanham Posts: 2Questions: 1Answers: 0

    @kthorngren Wow, men.. you are a life saver . Thank you very much mate , hope you doing great.

Sign In or Register to comment.