2 ms·Because js sort works on string. for numeric sort try: `[6,-2,2,-7].sort( (a,b) => a-b)`by rk06 2y agoBecause js sort works on string. for numeric sort try: `[6,-2,2,-7].sort( (a,b) => a-b)`