")}),a=n,x.each(a,function(e,t){var a=x(t);a.is("["+d+"]")&&(a.is("."+u.descend)||a.addClass(u.ascend))}),o.is("[data-tablesaw-sortable-switch]")&&function(a){i=x("").addClass(u.switcher).addClass(u.tableToolbar);var l=[""+B.i18n.sort+":"];l.push(''),a.each(function(e){var t=x(this),a=t.is("["+d+"]"),s=t.is("."+u.descend),n=t.is("["+p+"]"),i=0;x(this.cells.slice(0,5)).each(function(){isNaN(parseInt(b(this),10))||i++});var o=5===i;n||t.attr(p,o?"":"false"),l.push("'+t.text()+" "+(o?"↑":"(A-Z)")+" "),l.push("'+t.text()+" "+(o?"↓":"(Z-A)")+" ")}),l.push(" "),i.html(l.join(""));var e=r.$toolbar.children().eq(0);e.length?i.insertBefore(e):i.appendTo(r.$toolbar),i.find(".tablesaw-btn").tablesawbtn(),i.find("select").on("change",function(){var e=x(this).val().split("_"),t=a.eq(e[0]);c(t.siblings()),o[h]("sortBy",t.get(0),"asc"===e[1])})}(n)},sortRows:function(e,t,a,s,n){var i,o,l,r,c,d,h,u=(o=s.cells,l=n,r=[],x.each(o,function(e,t){for(var a=t.parentNode,s=x(a),n=[],i=s.next();i.is("["+w+"]");)n.push(i[0]),i=i.next();var o=a.parentNode;s.is("["+w+"]")||o===l&&r.push({element:t,cell:b(t),row:a,subrows:n.length?n:null,ignored:s.is("["+g+"]")})}),r),f=x(s).data("tablesaw-sort");return i=!(!f||"function"!=typeof f)&&f(a)||(c=a,d=x(s).is("["+p+"]")&&!x(s).is("["+p+'="false"]'),h=/[^\-\+\d\.]/g,c?function(e,t){return e.ignored||t.ignored?0:d?parseFloat(e.cell.replace(h,""))-parseFloat(t.cell.replace(h,"")):e.cell.toLowerCase()>t.cell.toLowerCase()?1:-1}:function(e,t){return e.ignored||t.ignored?0:d?parseFloat(t.cell.replace(h,""))-parseFloat(e.cell.replace(h,"")):e.cell.toLowerCase()
"),s=x(" ").appendTo(e),n=x(" ").appendTo(e),r=c._getPrimaryHeaderCells(),i=r.not('[data-tablesaw-priority="persist"]'),d=[],o=x(document.head||"head"),h=l.attr("id");if(!r.length)throw new Error("tablesaw swipe: no header cells found. Are you using