it's hard to tell what's the problem here without details...
what kind of exception do you get? (nullpointer i assuem)
did you properly initialize the table sorter? (in the wdDoModifiy hook method of the web dynpro view and only once; firstime==true)
regards,
christian