bugfix in tablesort, honor custom table-id