diff --git a/lib/core/src/lib/datatable/data/object-datatable-adapter.ts b/lib/core/src/lib/datatable/data/object-datatable-adapter.ts index 2c3d727189..12205039a4 100644 --- a/lib/core/src/lib/datatable/data/object-datatable-adapter.ts +++ b/lib/core/src/lib/datatable/data/object-datatable-adapter.ts @@ -71,11 +71,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter { constructor(data: any[] = [], schema: DataColumn[] = [], sortingMode: SortingMode = 'client') { this._rows = []; this._columns = []; - - if (!sortingMode) { - sortingMode = 'client'; - } - this._sortingMode = sortingMode; + this.sortingMode = sortingMode; if (data && data.length > 0) { this._rows = data.map((item) => new ObjectDataRow(item));