Skip to content

Instantly share code, notes, and snippets.

@manzaloros
Created June 5, 2021 15:00
Show Gist options
  • Save manzaloros/cf7b136484c3ae19bebae5c8220b27bc to your computer and use it in GitHub Desktop.
Save manzaloros/cf7b136484c3ae19bebae5c8220b27bc to your computer and use it in GitHub Desktop.
Array sort
array.sort((a,b) => a < b ? -1 : 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment