Closed MofuMofu2 closed 1 year ago
https://tc39.es/ecma262/multipage/text-processing.html#sec-string.prototype.localecompare
This method itself is not directly suitable as an argument to Array.prototype.sort because the latter requires a function of two arguments.
sort((a, b) => a - b)の(a,b)の部分にString.prototype.localeCompare
を使わないでね、ということだった。
デバッグの練習をしたい