diff --git a/src/extensions/filter-control/bootstrap-table-filter-control.js b/src/extensions/filter-control/bootstrap-table-filter-control.js index d5ffae1d40..6ef5abff3e 100644 --- a/src/extensions/filter-control/bootstrap-table-filter-control.js +++ b/src/extensions/filter-control/bootstrap-table-filter-control.js @@ -40,7 +40,9 @@ }; var sortSelectControl = function (selectControl) { + selectControl = $(selectControl.get(selectControl.length - 1)); var $opts = selectControl.find('option:gt(0)'); + $opts.sort(function (a, b) { a = $(a).text().toLowerCase(); b = $(b).text().toLowerCase();