mattiash / angular-tablesort

Sort angularjs tables easily
MIT License
184 stars 66 forks source link

collator undefined? #79

Closed RopoMen closed 7 years ago

RopoMen commented 7 years ago

Hi,

I looked in to the new createDefaultComparer() and noticed that

var collator = new Intl.Collator(undefined, { sensitivity: 'case' });

is created inside a scope of createDefaultComparer() function. This means that collator.compare used in line 332 should be undefined, am I right?

compResult = collator.compare(aval, bval);
mattiash commented 7 years ago

You're right. Fix pushed. Thank you!