repositioning column to first or last position