NOTE!

Demo

Metric (binary) Size
Metric Length
1 byte 1 nm
1 kB 1 kilometer
1 Gigabyte 1 Gm
10 MB 1 Tm
1 MB 1,000 mm
1 TB 1 meter
1 Petabyte 1 hm
1 ZB 1 dam
1 ZettaB 1 millimeter
1,025 MB 1 Mm
1,000 kilobytes 1 dm
1 EB 1 µm
1023 MB 1 pm

Page Header

<!-- blue theme stylesheet with additional css styles added in v2.0.17 -->
<link rel="stylesheet" href="../css/theme.blue.css">
<!-- tablesorter plugin -->
<script src="../js/jquery.tablesorter.js"></script>

<!-- load metric parser -->
<script src="../js/parsers/parser-metric.js"></script>

Javascript

$(function() {

$("table").tablesorter({
theme : 'blue',
widgets : ["zebra"]
});

});

HTML

<table class="tablesorter">
<thead>
<tr>
<th class="sorter-metric" data-metric-name-full="byte|Byte|BYTE" data-metric-name-abbr="b|B">Metric (binary) Size</th>
<!-- "data-metric-name" is deprecated in v2.22.2, use "data-metric-name-full" and "data-metric-name-abbr" instead -->
<th class="sorter-metric" data-metric-name="m|meter">Metric Length</th>
</tr>
</thead>
<tbody>
<tr><td>1 byte</td><td>1 nm</td></tr>
<tr><td>1 kB</td><td>1 kilometer</td></tr>
<tr><td>1 Gigabyte</td><td>1 Gm</td></tr>
<tr><td>10 MB</td><td>1 Tm</td></tr>
<tr><td>1 MB</td><td>1,000 mm</td></tr>
<tr><td>1 TB</td><td>1 meter</td></tr>
<tr><td>1 Petabyte</td><td>1 hm</td></tr>
<tr><td>1 ZB</td><td>1 dam</td></tr>
<tr><td>1 ZettaB</td><td>1 millimeter</td></tr>
<tr><td>1,025 MB</td><td>1 Mm</td></tr>
<tr><td>1,000 kilobytes</td><td>1 dm</td></tr>
<tr><td>1 EB</td><td>1 µm</td></tr>
<tr><td>1023 MB</td><td>1 pm</td></tr>
</tbody>
</table>

Next up: Applying the filter widget ››