sort

fun TableElement.sort(): TableElement

Call only once the DOM is ready (you added the table elements)

For this to work properly for non-strings, add the data-sort-value attribute to your TDs! About data-sort-value as You don't need to call again, unless you change the DOM