add sorting function, add directive for column sorting