Skip to content
joequery edited this page Jun 27, 2012 · 2 revisions

A case-insensitive string sort

"string-ins":function(a,b){
  a = a.toLowerCase();
  b = b.toLowerCase();
  if (a<b) return -1; if (a>b) return +1; return 0;
}
Clone this wiki locally