Browse Source

Fix custom sorter error.

zhixin 11 years ago
parent
commit
07c9b235ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -411,7 +411,7 @@
                 var value = calculateFunctionValue(that.header.sorters[index], [a[name], b[name]]);
 
                 if (value !== undefined) {
-                    return value;
+                    return order * value;
                 }
 
                 if (a[name] === b[name]) {