mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-08-11 11:40:22 +00:00
20180827 release
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<span class="hljs-attr">text</span>: <span class="hljs-string">'Product ID'</span>,
|
||||
<span class="hljs-attr">sort</span>: <span class="hljs-literal">true</span>
|
||||
<span class="hljs-comment">// Perform a reverse sorting here</span>
|
||||
sortFunc: <span class="hljs-function">(<span class="hljs-params">a, b, order, dataField</span>) =></span> {
|
||||
sortFunc: <span class="hljs-function">(<span class="hljs-params">a, b, order, dataField, rowA, rowB</span>) =></span> {
|
||||
<span class="hljs-keyword">if</span> (order === <span class="hljs-string">'asc'</span>) {
|
||||
<span class="hljs-keyword">return</span> b - a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user