MDN states that Array.prototype.sort()
sorts by UTF-16.
"The default sort order is ascending [...] comparing their sequences of UTF-16 code units values."
I need to sort by UTF-8 (or Unicode or UTF-32 as their order is the same). Is there a good way to do this in the browser?
UTF-16 maddeningly has some points out of order. That source suggests a "fix-up" rotation of the out-of-order code points, but I've not seen this widely acknowledged or implemented in the Javascript world.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort