Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var nums = [700, 80, 9];
nums.sort(); // [700, 80, 9]
nums.sort(function(a, b) { return a - b; } ); // [9, 80, 700]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment