diff --git a/api/js/jsapi/egw_app.js b/api/js/jsapi/egw_app.js index 3355c1f867..315ed08079 100644 --- a/api/js/jsapi/egw_app.js +++ b/api/js/jsapi/egw_app.js @@ -280,6 +280,10 @@ var EgwApp = /** @class */ (function () { if (state.state && state.state.sort && state.state.sort.id) { _widget.sortBy(state.state.sort.id, state.state.sort.asc, false); } + else { + // Not using resetSort() to avoid the extra applyFilters() call + _widget.sortBy(undefined, undefined, false); + } if (state.state && state.state.selectcols) { // Make sure it's a real array, not an object, then set cols _widget.set_columns(jQuery.extend([], state.state.selectcols)); diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index 7b83c6fee5..67b264e84a 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -400,6 +400,11 @@ export abstract class EgwApp { _widget.sortBy(state.state.sort.id, state.state.sort.asc,false); } + else + { + // Not using resetSort() to avoid the extra applyFilters() call + _widget.sortBy(undefined,undefined,false); + } if(state.state && state.state.selectcols) { // Make sure it's a real array, not an object, then set cols