In article <200351903333.026587 / PADD>,
  Austin Ziegler <austin / halostatue.ca> writes:

> I'm not sure that either behaviour is a good idea, mostly because it
> seems to end up restricting Array contents to singular types if you
> want to sort the array. Granted, 1.6.8 fails on both forms of "1"
> <=> 1 with a TypeError, so this is a change, and sorted Array
> contents already couldn't be variant types because of that
> TypeError.
>
> Maybe we should figure out a way to sort objects of disparate types?
> (How? I donno. I've not really given it a lot of thought; I'm just
> tossing the idea around.)

How about this like Python?

[1,"1"].sort_by {|v| [v.class.name, v] }

However Python behaves bit differently on numbers.
-- 
Tanaka Akira