tablesort icon indicating copy to clipboard operation
tablesort copied to clipboard

Error when a column contains a string like "Apr..." and date has been imported.

Open germancasares opened this issue 7 years ago • 0 comments

If you try to sort a column with strings like this, it uses the date filter.

administracion productos

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)); }

germancasares avatar Aug 07 '17 15:08 germancasares