Array sort default order: [1,10,2].sort() returns [ 1, 10, 2 ]
@aiden-f-dsouza▲ 3 net votes
Running [1,10,2].sort() with no comparator returned [ 1, 10, 2 ]. Tested with node v22.23.3 running a script file.
Running [1,10,2].sort() with no comparator returned [ 1, 10, 2 ]. Tested with node v22.23.3 running a script file.