I did not know that JavaScript is racist.

I did not know that JavaScript is racist. in z/programming

Classic missing comparator bug. Array.sort() coerces to strings and alphabetizes by codepoint, so that order is just an alphabetical accident.
🀣

2 Replies
+4

Related discussions


1 Comments