summaryrefslogtreecommitdiffstats
path: root/dev/jquery.jtable.sorting.js
diff options
context:
space:
mode:
Diffstat (limited to 'dev/jquery.jtable.sorting.js')
-rw-r--r--dev/jquery.jtable.sorting.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/jquery.jtable.sorting.js b/dev/jquery.jtable.sorting.js
index 0cd4479..932dbe7 100644
--- a/dev/jquery.jtable.sorting.js
+++ b/dev/jquery.jtable.sorting.js
@@ -84,7 +84,7 @@
if (fieldProps.sorting) {
var colOffset = orderValue.indexOf(fieldName);
if (colOffset > -1) {
- if (orderValue.toUpperCase().indexOf('DESC', colOffset) > -1) {
+ if (orderValue.toUpperCase().indexOf(' DESC', colOffset) > -1) {
self._lastSorting.push({
fieldName: fieldName,
sortOrder: 'DESC'
@@ -181,4 +181,4 @@
});
-})(jQuery); \ No newline at end of file
+})(jQuery);