Implement support for column sorting.