Added basic functionality for column sorting