Below is a relatively simple demo showing how elementals.js' built in _.USort.element can be used to sort a TBODY.