From: Yohanes Santoso Date: 2006-01-12T08:11:03+09:00 Subject: Re: Ruby, Unicode - ever? "Bruce D'Arcus" writes: > Levin Alexander wrote: >> On 1/11/06, Bruce D'Arcus wrote: >> >> > I''d like to be able to do this and have it just work: >> > >> > x = ["z", "a", "�", "o", "b"] >> > puts x.sort.inspect >> >> Correct sorting of text is a quite tricky problem, because the correct >> sort order will probably be language or application specific. >> >> > Maybe I'm missing something (and if I am, please tell me), but even >> > when using jcode, the multi-byte character always is last. >> >> > > Yes, I'm aware of that, but I'd rather have a default collation used How can you have a default collation if there is no default culture. Collating by character binary value (what ruby does) is as neutral a collation as it can get. Else, people would be shouting 'favouritism'. > that gets very close, than for Ruby not even try to sort extended > characters. YS.