Created
April 14, 2011 03:55
-
-
Save fojas/918861 to your computer and use it in GitHub Desktop.
my confusing sort
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wtf_sort(llll){ | |
for(var l1ll=llll.length;l1ll;) | |
for(var l11l,ll1l=(l11l=llll.length)-(l1ll--);(l11l--)-(ll1l);(llll[l11l]<llll[l11l-1])?llll[l11l]=(llll[l11l-1]^=llll[l11l]^=llll[l11l-1])^llll[l11l]:l11l); | |
return llll; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment