Looking at your bbcode, you seem to have opened the table with [tablesort] but ended it with [table2]. That may be the issue.