Add back table id for sorting.