Optimized ascending.js

No need to repeat ">="

"a < b ? -1 : a > b ? 1 : 0" would be better, but I don't know if it would break logic.