Skip to content

Commit

Permalink
Fixed #1633 - Improve sorting performance on DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 4, 2021
1 parent 81ef7ee commit c88265e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/datatable/DataTable.vue
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit c88265e

Please sign in to comment.