TinySort
TinySort copied to clipboard
TinySort is a small script that sorts HTML elements. It sorts by text- or attribute value, or by that of one of it's children.
I use this function to sort with accented characters. This could be the default sort function, or just one more option. `sortFunction: function(a,b) { return a.elm.textContent.localeCompare(b.elm.textContent); }`
Hi, please check here: http://www.ukulele.hu/blogkategoriak.php?kategoria=6 Press the arrows next to "ABC szerint", and you will see that É comes up as the last or first corresponding to the selected order....
Hi, I have implemented new improvement that allows to sort elements by callback function. I am ready to create new Pull Request, just want to describe it before and ask...
Hi there We've recently switched from using webpack to esbuild and have run into issues with importing tinysort. It appears that when using esbuild, importing tinysort as the default import...