Fixed #3504 - Random column sorting on Ruby 1.8

Sorting columns in the *output* from table_print seems most viable workaround so far. All more sane attempts failed.