From 7e5a726d2ffaf4c1654d235b3fe5e80be59addba Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sun, 21 Aug 2016 13:57:04 +0800 Subject: [PATCH] fix #634 --- src/BootstrapTable.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js index b53be92ad..f4b5c3ee5 100644 --- a/src/BootstrapTable.js +++ b/src/BootstrapTable.js @@ -723,6 +723,13 @@ class BootstrapTable extends Component { this.store.search(searchText); + + const sortObj = this.store.getSortInfo(); + + if (sortObj) { + this.store.sort(sortObj.order, sortObj.sortField); + } + let result; if (this.props.pagination) { const { sizePerPage } = this.state;