Skip to content

Instantly share code, notes, and snippets.

@chardos
Created December 15, 2015 12:28
Show Gist options
  • Save chardos/fb307b15a4c8963e4de1 to your computer and use it in GitHub Desktop.
Save chardos/fb307b15a4c8963e4de1 to your computer and use it in GitHub Desktop.
function sortArgs () {
// Convert arguments object into a real array
var args = [].slice.call(arguments);
// Now this will work!
sorted = args.sort()
return sorted;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment