Sort columns by position.