Default sort is lexicographic: [ 1, 10, 100, 9 ] (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran return [10,9,1,100].sort() in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 1, 10, 100, 9 ].
Ran return [10,9,1,100].sort() in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 1, 10, 100, 9 ].