diff --git a/sorting/file-size.js b/sorting/file-size.js index 2793244..5d3b90b 100644 --- a/sorting/file-size.js +++ b/sorting/file-size.js @@ -19,6 +19,10 @@ */ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) { + if (data === null || data === '') { + return 0; + } + var matches = data.match( /^(\d+(?:\.\d+)?)\s*([a-z]+)/i ); var multipliers = { b: 1,