javascript sort of HTML elements
There are much better ways to sort. You need a comparison function that returns the right values: -1, 0, and 1. localeCompare() is such a comparison function. You can just move the DOM elements around rather than regenerating the HTML. You can get the LI elements directly in the original selector. “#table1” is a more … Read more