$("#location").select2({
    placeholder: "Location",
    allowClear: true
});
$("#site").select2({
    placeholder: "Site",
    allowClear: true
});
$("#category").select2({
    placeholder: "Site",
    allowClear: true
});
$.tablesorter.addParser({
    id: 'inputcount',
    is: function(s) {
        return false;
    },
    format: function(s) {
        var regex = new RegExp('(.*?)value=\"(.*?)\"(.*?)');
        var results = regex.exec(s.toLowerCase());
        return 0;
    },
    type: 'text'
});
$("#stock").tablesorter({
    headers: {
        3: {
            sorter:'inputcount'
        }
    }
});

@@ -331,32 +331,56 @@
 rmat: function(s
+, table, cell, cellIndex
 ) %7B%0A        var 
@@ -498,9 +498,51 @@
 urn 
-0
+cell.getElementsByTagName('input')%5B0%5D.value
 ;%0A  
@@ -561,12 +561,15 @@
 e: '
-text
+numeric
 '%0A%7D)
@@ -592,24 +592,55 @@
 blesorter(%7B%0A
+    textExtraction: %22complex%22,%0A
     headers:
@@ -687,16 +687,66 @@
 tcount'%0A
+        %7D,%0A        4: %7B%0A            sorter: false%0A
         

Implement sorting of stock tables.