Skip to content

Instantly share code, notes, and snippets.

@JacksonGariety
Created January 8, 2014 00:46
Show Gist options
  • Save JacksonGariety/8309665 to your computer and use it in GitHub Desktop.
Save JacksonGariety/8309665 to your computer and use it in GitHub Desktop.
function a(e,l){l='length';if(e[l]<2)return e;var t=a(e.slice(0,e[l]/2)),n=a(e.slice(e[l]/2)),r=[];while(t[l]&&n[l]){r.push(t[0]<n[0]?t.shift():n.shift())}return r.concat(t).concat(n)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment