Implemented simple column sorting.