No need for case here
Added #<=> (comparison)
Removed to_ary