mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
Merge pull request #508 from react-bootstrap-table/enhance/501
fix #501
This commit is contained in:
@@ -24,7 +24,7 @@ export const sort = (data, sortOrder, { dataField, sortFunc }) => {
|
||||
valueB = _.isDefined(valueB) ? valueB : '';
|
||||
|
||||
if (sortFunc) {
|
||||
result = sortFunc(valueA, valueB, sortOrder, dataField);
|
||||
result = sortFunc(valueA, valueB, sortOrder, dataField, a, b);
|
||||
} else {
|
||||
if (sortOrder === Const.SORT_DESC) {
|
||||
result = comparator(valueA, valueB);
|
||||
|
||||
Reference in New Issue
Block a user