Skip to content

Instantly share code, notes, and snippets.

@hoehrmann
Created February 13, 2013 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoehrmann/4893226 to your computer and use it in GitHub Desktop.
Save hoehrmann/4893226 to your computer and use it in GitHub Desktop.
var ordered = [].sort.call([].slice.call(list, 0), function(a, b) {
return (a.p1 - b.p1) || (a.p2 - b.p2);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment