mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 13:10:03 +00:00
20180827 release
This commit is contained in:
@@ -65,7 +65,7 @@ It's simple!! configure [`sortFunc`](./column-props.html#columnsortfunc-function
|
||||
text: 'Product ID',
|
||||
sort: true
|
||||
// Perform a reverse sorting here
|
||||
sortFunc: (a, b, order, dataField) => {
|
||||
sortFunc: (a, b, order, dataField, rowA, rowB) => {
|
||||
if (order === 'asc') {
|
||||
return b - a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user