function asc(a,b){ return a>b; }; arr.sort(asc);
function desc(a,b){ return a<b; }; arr.sort(desc);
Posted 11/16/2010 05:05AM by Anonymous
Comments
No comments have been posted
Want to learn great syntax? Have great syntax to share? Syntactic Sugr is a community of expert developers sharing syntactic sugar and other powerful snippets.
Comments
No comments have been posted