|
@@ -617,8 +617,8 @@ BootstrapTable.prototype.onMultipleSort = function () {
|
|
|
const order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1
|
|
const order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1
|
|
|
let aa = a[fieldName]
|
|
let aa = a[fieldName]
|
|
|
let bb = b[fieldName]
|
|
let bb = b[fieldName]
|
|
|
- value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
|
|
|
|
|
- value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
|
|
|
|
|
|
|
+ let value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
|
|
|
|
|
+ let value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
|
|
|
|
|
|
|
|
if (value1 !== undefined && value2 !== undefined) {
|
|
if (value1 !== undefined && value2 !== undefined) {
|
|
|
arr1.push(order * value1)
|
|
arr1.push(order * value1)
|