Improved column sorting behavior