diff --git a/share/public/javascripts/portsort.js b/share/public/javascripts/portsort.js index 2de54fc4..1a2d0c71 100644 --- a/share/public/javascripts/portsort.js +++ b/share/public/javascripts/portsort.js @@ -30,6 +30,8 @@ function portSort (a, b) { // octal regex ore = /^0/, // convert all to strings and trim() + if (typeof a == 'null') { a = ''; } + if (typeof b == 'null') { b = ''; } x = a.toString().replace(sre, '') || '', y = b.toString().replace(sre, '') || '';