0

In datatable while sorting in descending order empty cells are coming at last but while sorting in ascending order empty spaces are displaying top of datatable, I need to display those empty spaces at bottom of the table even after sorting in both ascending and descending.

$('#idealistTable').DataTable({
  "paging": false,
  "searching": false,
  "ordering": true,
  "info": false,
  "order": [
    [4, "desc"]
  ]
});
biberman
  • 5,606
  • 4
  • 11
  • 35
  • 1
    https://datatables.net/forums/discussion/26301/custom-sorting-disabling-sorting-per-column – freedomn-m Nov 21 '22 at 08:46
  • Look at [Display null values last on initial sorting a JQuery DataTable](https://stackoverflow.com/q/39355390/12567365), or at [Sorting Empty values always to top in Datatables](https://stackoverflow.com/q/53725850/12567365) or at various [similar questions](https://www.google.com/search?q=datatables+sort+blanks+to+end+site:stackoverflow.com). – andrewJames Nov 21 '22 at 12:58

0 Answers0