Make column sorting behave properly with drag/drop