Adjusting sorting for columns