YUI.add("arraysort",function(e,r){var a=e.Lang,t=a.isValue,n=a.isString,h=e.ArraySort={compare:function(e,r,a){return t(e)?t(r)?(e=n(e)?e.toLowerCase():e)<(r=n(r)?r.toLowerCase():r)?a?1:-1:r<e?a?-1:1:0:-1:t(r)?1:0},naturalCompare:function(e,r,a){e+="",r+="",a&&a.caseSensitive||(e=e.toLowerCase(),r=r.toLowerCase());for(var t,n,o=h._splitAlphaNum(e),i=h._splitAlphaNum(r),s=Math.min(o.length,i.length),u=0,l=0;l<s;l++)if((t=o[l])!==(n=i[l])){u=(u=t-n)||(n<t?1:-1);break}return u=u||e.length-r.length,a&&a.descending?-u:u},_splitAlphaNum:function(e){for(var r,a=[],t=/(\d+|\D+)/g;r=t.exec(e);)a.push(r[1]);return a}}},"patched-v3.18.4",{requires:["yui-base"]});