mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
add sorting indicator (#15542)
This commit is contained in:
@@ -625,11 +625,14 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
|
||||
}
|
||||
|
||||
if (this.state.sortState) {
|
||||
const sortAsc = this.state.sortState.sortAsc;
|
||||
const sortCol = this.columns.find((column) => column.field === this.state.sortState.field);
|
||||
this.table.grid.setSortColumn(sortCol.id, sortAsc);
|
||||
await this.dataProvider.sort({
|
||||
multiColumnSort: false,
|
||||
grid: this.table.grid,
|
||||
sortAsc: this.state.sortState.sortAsc,
|
||||
sortCol: this.columns.find((column) => column.field === this.state.sortState.field)
|
||||
sortAsc: sortAsc,
|
||||
sortCol: sortCol
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user