A simple way to sort HTML lists / localeCompare()
11 Apr 2020
Since the dawn of time people have been asking how to sort HTML elements - usually lists or tables. Back in the day we had jQuery plugins for this (including one from yours truly). Let's look at an elegant, native approach.