Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created October 9, 2009 15:58
Show Gist options
  • Save cheeaun/206130 to your computer and use it in GitHub Desktop.
Save cheeaun/206130 to your computer and use it in GitHub Desktop.
Array.insensitiveSort in MooTools
// http://pushingbuttons.net/?ArrayinsensitiveSort_in_MooTools
Array.implement({
insensitiveSort: function(){
return this.sort(function(a, b){
return a.toString().toLowerCase()>b.toString().toLowerCase();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment