I have noticed that even though I get the JavaScript error, it seems to create the correct code, I continued with adding the Sort SB and it worked fine. I would still like to know what is cause ing the Javascript error though.
I also get the same error. The sorting feature works, but I still get the JavaScript error stated in this thread. I have deleted my chache as recommended in another thread, but I still get it.