mattiash / angular-tablesort

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

Comparing with collators to avoid problems with accent characters. #71

Closed adripanico closed 7 years ago

adripanico commented 7 years ago

For instance, right now character 'Á' is below character 'Z'. This commit avoid this situation, so 'Á' == 'A'.

mattiash commented 7 years ago

On second thought, I don't really understand why you use 'co' as in

new Intl.Collator('co', ...)

What does 'co' mean? Corsican?

adripanico commented 7 years ago

Good question.

A first look to MDN Intl.Collator definition made me think this was some kind of wild selector.

Now, on second look, I start having doubts about that...