Browse Source

Multiple sort extension new option

djhvscf 5 years ago
parent
commit
75c984ca72

+ 2 - 2
site/docs/extensions/multiple-sort.md

@@ -38,13 +38,13 @@ toc: true
 
 - **Default:** `true`
 
-### multiSortStrictSearch
+### multiSortStrictSort
 
 - **type:** `Boolean`
 
 - **Detail:**
 
-   Set true to enable strict search. This means that strings will be compared using toLowerCase.
+   Set true to enable strict sorting. This means that strings will be compared and ordered using toLowerCase.
 
 - **Default:** `false`
 

+ 2 - 2
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -432,7 +432,7 @@ $.fn.bootstrapTable.methods.push('multipleSort')
 $.extend($.fn.bootstrapTable.defaults, {
   showMultiSort: false,
   showMultiSortButton: true,
-  multiSortStrictSearch: false,
+  multiSortStrictSort: false,
   sortPriority: null,
   onMultipleSort () {
     return false
@@ -630,7 +630,7 @@ BootstrapTable.prototype.onMultipleSort = function () {
         aa = aa.toString()
         bb = bb.toString()
 
-        if (that.options.multiSortStrictSearch) {
+        if (that.options.multiSortStrictSort) {
           aa = aa.toLowerCase()
           bb = bb.toLowerCase()
         }