Fixed #1633 - Improve sorting performance on DataTable

pull/1643/head
mertsincan 2021-10-04 11:31:10 +03:00
parent 81ef7ee157
commit c88265ecbe
1 changed files with 4 additions and 4 deletions

View File

@ -1823,16 +1823,16 @@ export default {
if (!this.lazy) {
if (data && data.length) {
if (this.hasFilters) {
data = this.filter(data);
}
if (this.sorted) {
if(this.sortMode === 'single')
data = this.sortSingle(data);
else if(this.sortMode === 'multiple')
data = this.sortMultiple(data);
}
if (this.hasFilters) {
data = this.filter(data);
}
}
}