We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for array method
[1, -2, 15, 2, 0, 8].sort(function(a, b) { alert( a + " <> " + b ); return a - b; });
for example a = -2 and b = 15 this will make a-b = -17 which mean a<b but it should return positive number
thanks and have a nice day :)
for array method
for example a = -2 and b = 15 this will make a-b = -17 which mean a<b but it should return positive number
thanks and have a nice day :)