reorderColumns function

Reorder output columns.