Added new multipliers in order to include *bibyte units during sorting

pull/260/head
Víctor Sánchez 9 years ago
parent 427969e6d9
commit dbd55a006b

@ -23,10 +23,15 @@ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) {
var multipliers = { var multipliers = {
b: 1, b: 1,
kb: 1000, kb: 1000,
kib: 1024,
mb: 1000000, mb: 1000000,
mib: 1048576,
gb: 1000000000, gb: 1000000000,
gib: 1073741824,
tb: 1000000000000, tb: 1000000000000,
pb: 1000000000000000 tib: 1099511627776,
pb: 1000000000000000,
pib: 1125899906842624
}; };
if (matches) { if (matches) {

Loading…
Cancel
Save