Permalink
Browse files

clarification added to new demo

  • Loading branch information...
1 parent 7ca3997 commit 6eee50648c0e64c5f33b1d5dd71ba448ca72f12a @Mottie committed Aug 1, 2011
Showing with 10 additions and 10 deletions.
  1. +9 −9 docs/example-options-headers-digits-strings.html
  2. +1 −1 docs/index.html
View
18 docs/example-options-headers-digits-strings.html
@@ -24,11 +24,11 @@
// call the tablesorter plugin
$("table").tablesorter({
headers: {
- 5: { sorter: "digit", string: "max+" }, // strings (non-numeric) cells are treated as a MAX value
- 6: { sorter: "digit", string: "max-" }, // strings (non-numeric) cells are treated as a MIN value
- 7: { sorter: "digit", string: "max+" }, // strings (non-numeric) cells are treated as a MAX value
- 8: { sorter: "digit", string: "max-" }, // strings (non-numeric) cells are treated as a MIN value
- 9: { sorter: "digit" } // strings (non-numeric) cells are given a value of ZERO (default)
+ 5: { sorter: "digit", string: "max+" }, // non-numeric content is treated as a MAX value
+ 6: { sorter: "digit", string: "max-" }, // non-numeric content is treated as a MIN value
+ 7: { sorter: "digit", string: "max+" }, // non-numeric content is treated as a MAX value
+ 8: { sorter: "digit", string: "max-" }, // non-numeric content is treated as a MIN value
+ 9: { sorter: "digit" } // non-numeric content is given a value of ZERO (default)
}
});
});</script>
@@ -45,10 +45,10 @@
<p class="tip">
<em>NOTE!</em>
<ul>
- <li>When a column is sorted numerically ( sorter:"digit" ) any text also in that column will by default be given a zero value. Sort the last column to see the problem with this method.</li>
- <li>Set the "string" to "max+" to treat any text as a value greater than the max numerical value in the column</li>
- <li>Set the "string" to "max-" to treat any text as a value greater than the max negative value.</li>
- <li>Sort columns five through eight to see how the sort is changed. Note that the text is sorted separately.</li>
+ <li>When a column is sorted numerically ( sorter:"digit" ) any text in that column will, by default, be given a <em>zero</em> value. Sort the last column (#9) to see the problem with this method.</li>
+ <li>Set the headers option "string" value to "max+" to treat any text in that column as a value greater than the <em>max positive</em> value.</li>
+ <li>Set the headers option "string" value to "max-" to treat any text in that column as a value greater than the <em>max negative</em> value.</li>
+ <li>Sort columns five through eight to see how the sort has changed. Note that the text is sorted separately from the numeric values.</li>
</ul>
</p>
View
2 docs/index.html
@@ -36,7 +36,7 @@
</div>
<p>
<strong>Author:</strong> <a class="external" href="http://lovepeacenukes.com">Christian Bach</a><br>
- <strong>Version:</strong> 2.0.10 (<a href="../changelog.markdown">changelog</a>)<br>
+ <strong>Version:</strong> 2.0.10 (<a href="../changelog.txt">changelog</a>)<br>
<strong>Licence:</strong>
Dual licensed under <a class="external" href="http://www.opensource.org/licenses/mit-license.php">MIT</a>
or <a class="external" href="http://www.opensource.org/licenses/gpl-license.php">GPL</a> licenses.

0 comments on commit 6eee506

Please sign in to comment.