add sort to table