[Ironruby-core] sorting of strings is different in IronRuby than in Ruby

Ivan Porto Carrero ivan at flanders.co.nz
Wed Aug 20 03:53:35 EDT 2008


I was playing around with a very simple code example and got different
results in IronRuby and in Ruby.

"IronRuby In Action".split(//).sort.uniq.join

returns in MRI: " AIRbcinortuy"
returns in IronRuby: " AbciInorRtuy"

I'm sure you guys are aware of this, but just in case :)
I guess in the end the 2 results should be the same or is this perhaps
something that has to do with encoding?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080820/26d183e8/attachment.html>

More information about the Ironruby-core mailing list