Test column sorting