In this post, I show how to cajole Array.sort() into producing the following order. This: instead of this.... The answer is to pass the sort function a comparator argument from the International Collator built into every major browser and Node.js. This approach is simple and declarative for lists of flat strings. The comparison function arguments default to each string being compared. For sorting objects such as a list of dropdown choices, just pass a pair of the sort field drill-downs to the...| Keyhole Software
The JavaScript Internationalization API is growing, and its V8 implementation is getting faster!| www.recompiled.dev
In this blog post, we look at the ECMAScript proposal “RegExp v flag with set notation + properties of strings” by Markus Scherer and Mathias Bynens.| 2ality.com