Skip to content

Instantly share code, notes, and snippets.

@pablotolentino
Created March 25, 2021 05:17
Show Gist options
  • Save pablotolentino/db49f0a42827a76572d07f8a353c17f4 to your computer and use it in GitHub Desktop.
Save pablotolentino/db49f0a42827a76572d07f8a353c17f4 to your computer and use it in GitHub Desktop.
const numeros = [3, 23, 12];
numeros.sort(function(a, b){return a - b}); // --> 3, 12, 23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment