Fixed #1633 - Improve sorting performance on DataTable
parent
81ef7ee157
commit
c88265ecbe
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue