Skip to content

Instantly share code, notes, and snippets.

@JoeChapman
Created March 21, 2012 13:54
Show Gist options
  • Save JoeChapman/2147057 to your computer and use it in GitHub Desktop.
Save JoeChapman/2147057 to your computer and use it in GitHub Desktop.
Basic example of JavaScript sort method
var arr = ['b', 'f', 'a', 'z', 't'];
arr.sort();
// Result
a,b,f,t,z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment