Preserving column order

This closes issue #4.