Put columns list in right order and remove possible duplications.