How to sort numbers correctly with Array.sort()? [duplicate] December 8, 2022 by Tarik a.sort(function(a,b){return a - b}) These can be confusing…. check this link out.