in webapp/components/flow-design-system/fds-demo.js [924:940]
filter: function (sortBy, sortOrder) {
if (this.allRowsSelected) {
this.toggleSelectAll();
}
this.deselectAll();
let newData = this.data;
for (let i = 0; i < this.searchTerm.length; i++) {
newData = this.filterData(newData, this.searchTerm[i], true);
}
this.filteredTotal = newData.length;
newData = this.dataTableService.sortData(newData, sortBy, sortOrder);
this.pageCount = newData.length;
newData = this.dataTableService.pageData(newData, this.fromRow, this.currentPage * this.pageSize);
this.filteredData = newData;
this.getAutoCompleteData();
},