From 6eee50648c0e64c5f33b1d5dd71ba448ca72f12a Mon Sep 17 00:00:00 2001
From: Rob Garrison
Date: Sun, 31 Jul 2011 22:34:26 -0500
Subject: [PATCH] clarification added to new demo
---
...example-options-headers-digits-strings.html | 18 +++++++++---------
docs/index.html | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/docs/example-options-headers-digits-strings.html b/docs/example-options-headers-digits-strings.html
index e6c51cf0..c8825f48 100644
--- a/docs/example-options-headers-digits-strings.html
+++ b/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)
}
});
});
@@ -45,10 +45,10 @@
NOTE!
- - 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.
- - Set the "string" to "max+" to treat any text as a value greater than the max numerical value in the column
- - Set the "string" to "max-" to treat any text as a value greater than the max negative value.
- - Sort columns five through eight to see how the sort is changed. Note that the text is sorted separately.
+ - When a column is sorted numerically ( sorter:"digit" ) any text in that column will, by default, be given a zero value. Sort the last column (#9) to see the problem with this method.
+ - Set the headers option "string" value to "max+" to treat any text in that column as a value greater than the max positive value.
+ - Set the headers option "string" value to "max-" to treat any text in that column as a value greater than the max negative value.
+ - Sort columns five through eight to see how the sort has changed. Note that the text is sorted separately from the numeric values.
diff --git a/docs/index.html b/docs/index.html
index af2354ff..99f20c37 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -36,7 +36,7 @@
Author: Christian Bach
- Version: 2.0.10 (changelog)
+ Version: 2.0.10 (changelog)
Licence:
Dual licensed under MIT
or GPL licenses.