Fix #322: sort Table columns by header, before pretty printing

Similar to #320.

Seems like the specs were over-specifying, and the hash that (briefly) stores the Table row data doesn't return its keys in a consistent order. Sorting the keys fixes the problem, but it meant I had to re-order the output in the spec.