diff --git a/api/js/etemplate/et2_extension_nextmatch_controller.js b/api/js/etemplate/et2_extension_nextmatch_controller.js index 619aabd794..47d9cbe315 100644 --- a/api/js/etemplate/et2_extension_nextmatch_controller.js +++ b/api/js/etemplate/et2_extension_nextmatch_controller.js @@ -519,7 +519,7 @@ var et2_nextmatch_controller = /** @class */ (function (_super) { 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); } else { diff --git a/api/js/etemplate/et2_extension_nextmatch_controller.ts b/api/js/etemplate/et2_extension_nextmatch_controller.ts index fef3435db8..c5f8079018 100644 --- a/api/js/etemplate/et2_extension_nextmatch_controller.ts +++ b/api/js/etemplate/et2_extension_nextmatch_controller.ts @@ -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]; } } - else if (i === "order") + else if (i === "order" && _response.rows[i] !== nm.activeFilters.order) { nm.sortBy(_response.rows[i], undefined, false); }