Adjusting the sorting for new columns