Don't event set sort order if it hasn't changed

This commit is contained in:
nathangray 2021-01-04 09:43:54 -07:00
parent e588d63291
commit 5c10576b3b
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ var et2_nextmatch_controller = /** @class */ (function (_super) {
nm.getParent().getArrayMgr('sel_options').data[id] = _response.rows.sel_options[id]; nm.getParent().getArrayMgr('sel_options').data[id] = _response.rows.sel_options[id];
} }
} }
else if (i === "order") { else if (i === "order" && _response.rows[i] !== nm.activeFilters.order) {
nm.sortBy(_response.rows[i], undefined, false); nm.sortBy(_response.rows[i], undefined, false);
} }
else { else {

View File

@ -636,7 +636,7 @@ export class et2_nextmatch_controller extends et2_dataview_controller implements
nm.getParent().getArrayMgr('sel_options').data[id] = _response.rows.sel_options[id]; nm.getParent().getArrayMgr('sel_options').data[id] = _response.rows.sel_options[id];
} }
} }
else if (i === "order") else if (i === "order" && _response.rows[i] !== nm.activeFilters.order)
{ {
nm.sortBy(_response.rows[i], undefined, false); nm.sortBy(_response.rows[i], undefined, false);
} }