Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 396 Bytes

ruby.md

File metadata and controls

20 lines (13 loc) · 396 Bytes

Sorting with the UCA in Ruby

Sorting using the Unicode Collation Algorithm (UCA) is available with Ruby gem twitter_cldr.

require 'twitter_cldr'

sorted = unsorted.localize.sort

Linguistic tailoring

The twitter_cldr package also supports linguistic tailoring.

require 'twitter_cldr'

sorted = unsorted.localize(:de).sort