1function comparer(index) { 2 return function(a, b) { 3 var valA = getCellValue(a, index), valB = getCellValue(b, index) 4 return $.isNumeric(valA) && $.isNumeric(valB) ? valA - valB : valA.toString().localeCompare(valB) 5 } 6} 7function getCellValue(row, index){ return $(row).children('td').eq(index).text() } 8$(document).ready(function() { 9 $('.tx_twistedtalenthub th').click(function() { 10 var table = $(this).parents('table').eq(0) 11 var rows = table.find('tr:gt(0)').toArray().sort(comparer($(this).index())) 12 this.asc = !this.asc 13 $(this).find('em').removeClass('fa-arrow-down').addClass('fa-arrow-up'); 14 if (!this.asc){ 15 rows = rows.reverse(); 16 $(this).find('em').removeClass('fa-arrow-up').addClass('fa-arrow-down'); 17 } 18 for (var i = 0; i < rows.length; i++){table.append(rows[i])} 19 }) 20}); 21
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.