twitter/twitter-cldr-rb — pull request #40 by KL-7 (2012-06-04 19:11:26+00:00)
Title: Unicode Collation Algorithm.

It's not ready for being merged in at the moment, but there is already a very basic implementation of UCA.

In addition, I squeezed in a couple of changes to `Resources` specs to to test it more thoroughly. Honestly, I was going to change the implementation a bit, so I added some specs and made the changes. Then I decided to revert the changes (at least for now), but I can't throw the specs away ;) So, here they are.

I'll be adding stuff to this PR as the implementation grows. At the moment we need at least handle some special cases described in the docs, and normalize the input string (maybe with some optimizations in this part, because straightforward application of NFD to the argument of the `sort_key` method makes a noticeable impact on performance).