Skip to content

Instantly share code, notes, and snippets.

@hoehrmann
Created February 13, 2013 02:23
Show Gist options
  • 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