Fixed #3504 - Random column sorting on Ruby 1.8