function initTableSorter() { (function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'.',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;ib)?1:0));};function sortTextDesc(a,b){return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;iRank, Player<\/th>Opp.<\/th>Berry<\/th>Karabell<\/th>Yates<\/th>Cockcroft<\/th>Clay<\/th>Bell<\/th>Avg<\/th><\/thead>1. Cam Newton<\/a>, Car  Q<\/span><\/td>@Atl<\/td>2<\/td>1<\/td>1<\/td>2<\/td>1<\/td>1<\/td>1.3<\/td><\/tr>2. Drew Brees<\/a>, NO<\/td>Cle<\/td>1<\/td>2<\/td>4<\/td>3<\/td>7<\/td>2<\/td>3.2<\/td><\/tr>3. Ben Roethlisberger<\/a>, Pit<\/td>KC<\/td>3<\/td>4<\/td>6<\/td>4<\/td>2<\/td>7<\/td>4.3<\/td><\/tr>4. Aaron Rodgers<\/a>, GB<\/td>Min<\/td>7<\/td>7<\/td>2<\/td>1<\/td>5<\/td>6<\/td>4.7<\/td><\/tr>5. Alex Smith<\/a>, Wsh<\/td>Ind<\/td>5<\/td>3<\/td>3<\/td>5<\/td>3<\/td>12<\/td>5.2<\/td><\/tr>6. Patrick Mahomes<\/a>, KC<\/td>@Pit<\/td>4<\/td>5<\/td>11<\/td>9<\/td>4<\/td>10<\/td>7.2<\/td><\/tr>7. Tom Brady<\/a>, NE<\/td>@Jax<\/td>8<\/td>8<\/td>9<\/td>6<\/td>10<\/td>4<\/td>7.5<\/td><\/tr>8. Andrew Luck<\/a>, Ind<\/td>@Wsh<\/td>11<\/td>11<\/td>5<\/td>13<\/td>6<\/td>3<\/td>8.2<\/td><\/tr>9. Deshaun Watson<\/a>, Hou<\/td>@Ten<\/td>9<\/td>10<\/td>8<\/td>12<\/td>14<\/td>5<\/td>9.7<\/td><\/tr>10. Kirk Cousins<\/a>, Min<\/td>@GB<\/td>10<\/td>14<\/td>10<\/td>8<\/td>11<\/td>9<\/td>10.3<\/td><\/tr>11. Philip Rivers<\/a>, LAC<\/td>@Buf<\/td>14<\/td>6<\/td>14<\/td>7<\/td>17<\/td>8<\/td>11.0<\/td><\/tr>12. Jimmy Garoppolo<\/a>, SF  IR<\/span><\/td>Det<\/td>6<\/td>13<\/td>12<\/td>14<\/td>8<\/td>15<\/td>11.3<\/td><\/tr>13. Matthew Stafford<\/a>, Det<\/td>@SF<\/td>13<\/td>9<\/td>13<\/td>10<\/td>9<\/td>16<\/td>11.7<\/td><\/tr>14. Russell Wilson<\/a>, Sea<\/td>@Chi<\/td>15<\/td>12<\/td>7<\/td>11<\/td>13<\/td>17<\/td>12.5<\/td><\/tr>15. Matt Ryan<\/a>, Atl<\/td>Car<\/td>18<\/td>17<\/td>17<\/td>16<\/td>12<\/td>11<\/td>15.2<\/td><\/tr>16. Tyrod Taylor<\/a>, Cle<\/td>@NO<\/td>12<\/td>15<\/td>16<\/td>17<\/td>15<\/td>22<\/td>16.2<\/td><\/tr>17. Jared Goff<\/a>, LAR<\/td>Ari<\/td>16<\/td>16<\/td>15<\/td>18<\/td>21<\/td>13<\/td>16.5<\/td><\/tr>18. Nick Foles<\/a>, Phi<\/td>@TB<\/td>17<\/td>19<\/td>20<\/td>15<\/td>19<\/td>14<\/td>17.3<\/td><\/tr>19. Mitchell Trubisky<\/a>, Chi<\/td>Sea<\/td>22<\/td>18<\/td>22<\/td>20<\/td>18<\/td>18<\/td>19.7<\/td><\/tr>20. Case Keenum<\/a>, Den<\/td>Oak<\/td>19<\/td>20<\/td>18<\/td>22<\/td>20<\/td>NR<\/td>20.0<\/td><\/tr>21. Ryan Fitzpatrick<\/a>, TB<\/td>Phi<\/td>20<\/td>22<\/td>21<\/td>25<\/td>16<\/td>25<\/td>21.5<\/td><\/tr>22. Dak Prescott<\/a>, Dal<\/td>NYG<\/td>23<\/td>23<\/td>23<\/td>21<\/td>23<\/td>21<\/td>22.3<\/td><\/tr>22. Marcus Mariota<\/a>, Ten<\/td>Hou<\/td>NR<\/td>21<\/td>NR<\/td>19<\/td>NR<\/td>24<\/td>21.2<\/td><\/tr>24. Eli Manning<\/a>, NYG<\/td>@Dal<\/td>25<\/td>25<\/td>24<\/td>24<\/td>25<\/td>20<\/td>23.8<\/td><\/tr>24. Derek Carr<\/a>, Oak<\/td>@Den<\/td>NR<\/td>NR<\/td>19<\/td>23<\/td>NR<\/td>23<\/td>21.3<\/td><\/tr>24. Sam Darnold<\/a>, NYJ  Q<\/span><\/td>Mia<\/td>21<\/td>NR<\/td>25<\/td>NR<\/td>NR<\/td>19<\/td>21.3<\/td><\/tr>24. Ryan Tannehill<\/a>, Mia  Q<\/span><\/td>@NYJ<\/td>NR<\/td>24<\/td>NR<\/td>NR<\/td>22<\/td>NR<\/td>21.7<\/td><\/tr>24. Blake Bortles<\/a>, Jax<\/td>NE<\/td>24<\/td>NR<\/td>NR<\/td>NR<\/td>24<\/td>NR<\/td>22.0<\/td><\/tr><\/tbody>'); // Find existing inline table that we will replace var inlineTable = rankingsDiv.closest(".inline-table"); if(inlineTable.length) { rankingsDiv = inlineTable.parent(); rankingsDiv.prepend('\n\t