add sort for table