diff --git a/docs/basic-sort.md b/docs/basic-sort.md index d925d62..289f298 100644 --- a/docs/basic-sort.md +++ b/docs/basic-sort.md @@ -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; } diff --git a/docs/column-props.md b/docs/column-props.md index bd2dd52..29efe1d 100644 --- a/docs/column-props.md +++ b/docs/column-props.md @@ -107,13 +107,13 @@ It's only used for [`column.formatter`](#columnformatter-function), you can defi Enable the column sort via a `true` value given. ## column.sortFunc - [Function] -`column.sortFunc` only work when `column.sort` is enable. `sortFunc` allow you to define your sorting algorithm. This callback function accept four arguments: +`column.sortFunc` only work when `column.sort` is enable. `sortFunc` allow you to define your sorting algorithm. This callback function accept six arguments: ```js { // omit... sort: true, - sortFunc: (a, b, order, dataField) => { + sortFunc: (a, b, order, dataField, rowA, rowB) => { if (order === 'asc') return a - b; else return b - a; } diff --git a/website/blog/2018-08-27-version-bump.md b/website/blog/2018-08-27-version-bump.md new file mode 100644 index 0000000..0f882ea --- /dev/null +++ b/website/blog/2018-08-27-version-bump.md @@ -0,0 +1,23 @@ +--- +title: New Release (2018-08-27) +author: Allen Fang +authorURL: https://twitter.com/allenfang_tw +--- + +## Changed Packages + +This release bump following packages: + +* `react-bootstrap-table-next@1.1.3` + +## Changelog + +### Bug fixes +* Fixed `selectRow.onSelectAll` will return `undefined` value after search([#509](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/509)) + +### Features +N/A + +### Enhancements +* Fixed some wrong code in storybooks +* `column.sortFunc` now pass rowA and rowB([#508](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/508))