sort columns of output