Sorting in WebViewer by column using table.html code

The last example in the link you provided seems to be the one to use. I would suggest you set up an example with some dummy data to get that working in an html file, then transfer it across to your “table .html” file. This should make it easier to see where everything needs to go. Everything should be run “after” the dynamic table has been built by the javascript in table.html.