Datatable sort by date correctly
问题 I'm using Django framework for my web site but to show info I use the plugin Datatable so one column show date info, the format that is used to show the date is like May. 6, 2017 so when I sort the date column take the order as string and not date so the first date to show is like August 10, 2017 Is there a way to sort by date using that format? 回答1: When defining the columns of your DataTable, you need to specify the render callback as in the example below: columns: [ { title: "Date", data: