tablesort
tablesort copied to clipboard
Error when a column contains a string like "Apr..." and date has been imported.
If you try to sort a column with strings like this, it uses the date filter.
I think it is because of this chunk of code:
Tablesort.extend('date', function(item) { return ( item.search(/(Mon|Tue|Wed|Thu|Fri|Sat|Sun).?,?\s*/i) !== -1 || item.search(/\d{1,2}[/-]\d{1,2}[/-]\d{2,4}/) !== -1 || item.search(/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/i) !== -1 ) && !isNaN(parseDate(item)); }