Closed blerner closed 2 years ago
Go to an assignment page. Initially, the rows is sorted in descending order by date. Click on the Date column. It'll sort the column in ascending string order by the contents of that column. Click again to sort in descending string order.
To fix this:
.text()
iso-date
addParser
id: 'dates'
is: function(_) { return false; }
format: function(_, _, cell, _) { return $(cell).data("iso-date"); }
parsed: false
type: 'text'
sorter-dates
I think this ought to fix the sorting on that column...
Go to an assignment page. Initially, the rows is sorted in descending order by date. Click on the Date column. It'll sort the column in ascending string order by the contents of that column. Click again to sort in descending string order.
To fix this:
.text()
as aniso-date
data attributeaddParser
a new parser withid: 'dates'
,is: function(_) { return false; }
,format: function(_, _, cell, _) { return $(cell).data("iso-date"); }
,parsed: false
, andtype: 'text'
sorter-dates
to the date columns of tablesI think this ought to fix the sorting on that column...