Fix flickering spec

This was failing intermittently on Ruby 1.8.7 because hash keys
do not always come out in the same order. I've changed the behaviour
slightly to always sort the hash keys, so the table header will
come out alphabetically sorted.
Fix another flickering 1.8.7 spec