Made table sortable look into legality of method