how does the default js sort algorithm work
The default sort algorithm in JS converts values to strings and compares them by their unicode values.
How are undefined values sorted?
They are always placed at the end of the array no matter what the other values are:
is sort destructive?
Yes
What is the rough UTF-16 code point order?
digits & punctuation, uppercase letters, then lowercase letters