|
Sort example doesn't take into account Javascript does lexicographical sorting? javascript: someList = [ 40, 2, 1, 3, 7, 99]
someList.sort()
Array(6) [ 1, 2, 3, 40, 7, 99 ]
python: someList = [ 40, 2, 1, 3, 7, 99]
sorted(someList)
[1, 2, 3, 7, 40, 99]
|