2 ms·
For locale-aware correct sorting of unicode strings, based on the Unicode Collation Algorithm, some open source libraries twitter released are pretty awesome.
by jrochkind1 11y ago
For locale-aware correct sorting of unicode strings, based on the Unicode Collation Algorithm, some open source libraries twitter released are pretty awesome.
ruby: https://github.com/twitter/twitter-cldr-rb https://github.com/twitter/twitter-cldr-rb
javascript: https://github.com/twitter/twitter-cldr-js https://github.com/twitter/twitter-cldr-js
Human written language is pretty complicated. The Unicode standards (including the Common Locale Data Repository, the Unicode Collation Algorithm, normalization forms, associated standards and algorithms, etc) -- is a pretty damn amazing approach to dealing with it. It's not perfect, but it's amazing it's as well-designed and complete as it is. It's also not easy to implement solutions based on the unicode standards from scratch, cause it's complicated.