Etemplate: Apply sort order (to UI) if server sends it

This commit is contained in:
nathangray 2020-11-23 10:19:11 -07:00
parent cd667e01ec
commit 078ab2cb1a
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -636,6 +636,10 @@ 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")
{
nm.sortBy(_response.rows[i], undefined, false);
}
else
{
var mgr = nm.getArrayMgr('content');