From c88265ecbe8e72b20732f8b7929fe96616f8dd72 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 4 Oct 2021 11:31:10 +0300 Subject: [PATCH] Fixed #1633 - Improve sorting performance on DataTable --- src/components/datatable/DataTable.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 3e86dfeff..44bf5927d 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -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); - } } }