| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>jQuery tablesorter 2.0 - Sorting Across Multiple Columns</title> |
| 6 |
|
| 7 |
|
| 8 |
<script src="js/jquery-latest.min.js"></script> |
| 9 |
|
| 10 |
|
| 11 |
<link rel="stylesheet" href="css/jq.css"> |
| 12 |
<link href="css/prettify.css" rel="stylesheet"> |
| 13 |
<script src="js/prettify.js"></script> |
| 14 |
<script src="js/docs.js"></script> |
| 15 |
|
| 16 |
|
| 17 |
<link rel="stylesheet" href="../css/theme.blue.css"> |
| 18 |
<script src="../js/jquery.tablesorter.js"></script> |
| 19 |
|
| 20 |
<script id="js">$(function() { |
| 21 |
$("table").tablesorter({ theme : 'blue' }); |
| 22 |
});</script> |
| 23 |
</head> |
| 24 |
<body> |
| 25 |
<div id="banner"> |
| 26 |
<h1>table<em>sorter</em></h1> |
| 27 |
<h2>Sorting Across Multiple Columns</h2> |
| 28 |
<h3>Flexible client-side table sorting</h3> |
| 29 |
<a href="index.html">Back to documentation</a> |
| 30 |
</div> |
| 31 |
<div id="main"> |
| 32 |
|
| 33 |
<p class="tip"> |
| 34 |
<em>NOTE!</em> |
| 35 |
</p> |
| 36 |
<ul> |
| 37 |
<li>Clicking on any of the sortable header cells will cause all columns below it to sort.</li> |
| 38 |
<li>This demo will only work in tablesorter version 2.3+.</li> |
| 39 |
</ul> |
| 40 |
|
| 41 |
<h1>Demo</h1> |
| 42 |
<div id="demo"><table class="tablesorter"> |
| 43 |
<thead> |
| 44 |
<tr> |
| 45 |
<th colspan="5">Sort All Columns</th> |
| 46 |
</tr> |
| 47 |
<tr> |
| 48 |
<th rowspan="2">Index</th> |
| 49 |
<th colspan="2">First Group</th> |
| 50 |
<th colspan="2">Second Group</th> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<th>Natural Sort</th> |
| 54 |
<th>Numeric</th> |
| 55 |
<th id="test">Animals</th> |
| 56 |
<th >Url</th> |
| 57 |
</tr> |
| 58 |
</thead> |
| 59 |
<tfoot> |
| 60 |
<tr> |
| 61 |
<th>Index</th> |
| 62 |
<th>Natural Sort</th> |
| 63 |
<th>Numeric</th> |
| 64 |
<th id="test">Animals</th> |
| 65 |
<th >Url</th> |
| 66 |
</tr> |
| 67 |
</tfoot> |
| 68 |
<tbody> |
| 69 |
<tr><td>0</td><td>abc 123</td><td>10</td><td>Koala</td><td>http://www.google.com</td></tr> |
| 70 |
<tr><td>1</td><td>abc 1</td><td>234</td><td>Ox</td><td>http://www.yahoo.com</td></tr> |
| 71 |
<tr><td>2</td><td>abc 9</td><td>10</td><td>Girafee</td><td>http://www.facebook.com</td></tr> |
| 72 |
<tr><td>3</td><td>zyx 24</td><td>767</td><td>Bison</td><td>http://www.whitehouse.gov/</td></tr> |
| 73 |
<tr><td>4</td><td>abc 11</td><td>3</td><td>Chimp</td><td>http://www.ucla.edu/</td></tr> |
| 74 |
<tr><td>5</td><td>abc 2</td><td>56</td><td>Elephant</td><td>http://www.wikipedia.org/</td></tr> |
| 75 |
<tr><td>6</td><td>abc 9</td><td>155</td><td>Lion</td><td>http://www.nytimes.com/</td></tr> |
| 76 |
<tr><td>7</td><td>ABC 10</td><td>87</td><td>Zebra</td><td>http://www.google.com</td></tr> |
| 77 |
<tr><td>8</td><td>zyx 1</td><td>999</td><td>Koala</td><td>http://www.mit.edu/</td></tr> |
| 78 |
<tr><td>9</td><td>zyx 12</td><td>0</td><td>Llama</td><td>http://www.nasa.gov/</td></tr> |
| 79 |
</tbody> |
| 80 |
</table></div> |
| 81 |
|
| 82 |
<h1>Javascript</h1> |
| 83 |
<div id="javascript"> |
| 84 |
<pre class="prettyprint lang-javascript"></pre> |
| 85 |
</div> |
| 86 |
<h1>HTML</h1> |
| 87 |
<div id="html"> |
| 88 |
<pre class="prettyprint lang-html"></pre> |
| 89 |
</div> |
| 90 |
|
| 91 |
<div class="next-up"> |
| 92 |
<hr /> |
| 93 |
Next up: <a href="example-option-show-processing.html">showProcessing & Filter events ››</a> |
| 94 |
</div> |
| 95 |
|
| 96 |
</div> |
| 97 |
|
| 98 |
</body> |
| 99 |
</html> |