/*
YUI 3.10.3 (build 2fb5187)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/arraysort/arraysort.js']) {
   __coverage__['build/arraysort/arraysort.js'] = {"path":"build/arraysort/arraysort.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":32,"loc":{"start":{"line":32,"column":13},"end":{"line":32,"column":34}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":65,"column":41}},"2":{"start":{"line":9,"column":0},"end":{"line":11,"column":29}},"3":{"start":{"line":19,"column":0},"end":{"line":62,"column":2}},"4":{"start":{"line":33,"column":8},"end":{"line":43,"column":9}},"5":{"start":{"line":34,"column":12},"end":{"line":39,"column":13}},"6":{"start":{"line":35,"column":16},"end":{"line":35,"column":25}},"7":{"start":{"line":38,"column":16},"end":{"line":38,"column":25}},"8":{"start":{"line":41,"column":13},"end":{"line":43,"column":9}},"9":{"start":{"line":42,"column":12},"end":{"line":42,"column":22}},"10":{"start":{"line":45,"column":8},"end":{"line":47,"column":9}},"11":{"start":{"line":46,"column":12},"end":{"line":46,"column":32}},"12":{"start":{"line":48,"column":8},"end":{"line":50,"column":9}},"13":{"start":{"line":49,"column":12},"end":{"line":49,"column":32}},"14":{"start":{"line":51,"column":8},"end":{"line":59,"column":9}},"15":{"start":{"line":52,"column":12},"end":{"line":52,"column":35}},"16":{"start":{"line":54,"column":13},"end":{"line":59,"column":9}},"17":{"start":{"line":55,"column":12},"end":{"line":55,"column":35}},"18":{"start":{"line":58,"column":12},"end":{"line":58,"column":21}}},"branchMap":{"1":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":8}},{"start":{"line":33,"column":8},"end":{"line":33,"column":8}}]},"2":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":34,"column":12}},{"start":{"line":34,"column":12},"end":{"line":34,"column":12}}]},"3":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":13},"end":{"line":41,"column":13}},{"start":{"line":41,"column":13},"end":{"line":41,"column":13}}]},"4":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":8}},{"start":{"line":45,"column":8},"end":{"line":45,"column":8}}]},"5":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":8},"end":{"line":48,"column":8}},{"start":{"line":48,"column":8},"end":{"line":48,"column":8}}]},"6":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"7":{"line":52,"type":"cond-expr","locations":[{"start":{"line":52,"column":28},"end":{"line":52,"column":29}},{"start":{"line":52,"column":32},"end":{"line":52,"column":34}}]},"8":{"line":54,"type":"if","locations":[{"start":{"line":54,"column":13},"end":{"line":54,"column":13}},{"start":{"line":54,"column":13},"end":{"line":54,"column":13}}]},"9":{"line":55,"type":"cond-expr","locations":[{"start":{"line":55,"column":28},"end":{"line":55,"column":30}},{"start":{"line":55,"column":33},"end":{"line":55,"column":34}}]}},"code":["(function () { YUI.add('arraysort', function (Y, NAME) {","","/**","Provides a case-insenstive comparator which can be used for array sorting.","","@module arraysort","*/","","var LANG = Y.Lang,","    ISVALUE = LANG.isValue,","    ISSTRING = LANG.isString;","","/**","Provides a case-insenstive comparator which can be used for array sorting.","","@class ArraySort","*/","","Y.ArraySort = {","","    /**","    Comparator function for simple case-insensitive sorting of an array of","    strings.","","    @method compare","    @param a {Object} First sort argument.","    @param b {Object} Second sort argument.","    @param desc {Boolean} `true` if sort direction is descending, `false` if","        sort direction is ascending.","    @return {Boolean} -1 when a < b. 0 when a == b. 1 when a > b.","    */","    compare: function(a, b, desc) {","        if(!ISVALUE(a)) {","            if(!ISVALUE(b)) {","                return 0;","            }","            else {","                return 1;","            }","        }","        else if(!ISVALUE(b)) {","            return -1;","        }","","        if(ISSTRING(a)) {","            a = a.toLowerCase();","        }","        if(ISSTRING(b)) {","            b = b.toLowerCase();","        }","        if(a < b) {","            return (desc) ? 1 : -1;","        }","        else if (a > b) {","            return (desc) ? -1 : 1;","        }","        else {","            return 0;","        }","    }","","};","","","}, '3.10.3', {\"requires\": [\"yui-base\"]});","","}());"]};
}
var __cov_2Khzwsx6508tuwKeeJiIQQ = __coverage__['build/arraysort/arraysort.js'];
__cov_2Khzwsx6508tuwKeeJiIQQ.s['1']++;YUI.add('arraysort',function(Y,NAME){__cov_2Khzwsx6508tuwKeeJiIQQ.f['1']++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['2']++;var LANG=Y.Lang,ISVALUE=LANG.isValue,ISSTRING=LANG.isString;__cov_2Khzwsx6508tuwKeeJiIQQ.s['3']++;Y.ArraySort={compare:function(a,b,desc){__cov_2Khzwsx6508tuwKeeJiIQQ.f['2']++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['4']++;if(!ISVALUE(a)){__cov_2Khzwsx6508tuwKeeJiIQQ.b['1'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['5']++;if(!ISVALUE(b)){__cov_2Khzwsx6508tuwKeeJiIQQ.b['2'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['6']++;return 0;}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['2'][1]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['7']++;return 1;}}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['1'][1]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['8']++;if(!ISVALUE(b)){__cov_2Khzwsx6508tuwKeeJiIQQ.b['3'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['9']++;return-1;}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['3'][1]++;}}__cov_2Khzwsx6508tuwKeeJiIQQ.s['10']++;if(ISSTRING(a)){__cov_2Khzwsx6508tuwKeeJiIQQ.b['4'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['11']++;a=a.toLowerCase();}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['4'][1]++;}__cov_2Khzwsx6508tuwKeeJiIQQ.s['12']++;if(ISSTRING(b)){__cov_2Khzwsx6508tuwKeeJiIQQ.b['5'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['13']++;b=b.toLowerCase();}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['5'][1]++;}__cov_2Khzwsx6508tuwKeeJiIQQ.s['14']++;if(a<b){__cov_2Khzwsx6508tuwKeeJiIQQ.b['6'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['15']++;return desc?(__cov_2Khzwsx6508tuwKeeJiIQQ.b['7'][0]++,1):(__cov_2Khzwsx6508tuwKeeJiIQQ.b['7'][1]++,-1);}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['6'][1]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['16']++;if(a>b){__cov_2Khzwsx6508tuwKeeJiIQQ.b['8'][0]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['17']++;return desc?(__cov_2Khzwsx6508tuwKeeJiIQQ.b['9'][0]++,-1):(__cov_2Khzwsx6508tuwKeeJiIQQ.b['9'][1]++,1);}else{__cov_2Khzwsx6508tuwKeeJiIQQ.b['8'][1]++;__cov_2Khzwsx6508tuwKeeJiIQQ.s['18']++;return 0;}}}};},'3.10.3',{'requires':['yui-base']});
