mattiash / angular-tablesort

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

Add compare fallback #80

Closed RopoMen closed 7 years ago

RopoMen commented 7 years ago

Currently Intl is not enough widely supported (my opinion), because for example Safari 9 is lacking the support caniuse.com. Safari 10 has support and it has been released 2 months ago, so 9 is still widely used.

Also IE 10 does not have support for Intl.

I did look for the polyfill, but there is no support for Intl.Collator that is required by this library.

Providing an Intl.Collator implementation is no longer a goal of this project. There are several reasons, including:

  • The CLDR convertor does not automatically convert collation data to JSON
  • The Unicode Collation Algorithm is more complicated that originally anticipated, and would increase the code size of Intl.js too much.
  • The Default Unicode Collation Element Table is huge, even after compression, and converting to a native JavaScript object would probably make it slightly larger. Server-side JavaScript environments will (hopefully) soon support Intl.Collator, and we can't really expect client environments to download this data.