We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d69788c commit 5d652dcCopy full SHA for 5d652dc
public/app/core/table_model.ts
@@ -32,6 +32,8 @@ export default class TableModel {
32
if (options.desc) {
33
this.rows.reverse();
34
this.columns[options.col].desc = true;
35
+ } else {
36
+ this.columns[options.col].desc = false;
37
}
38
39
public/app/plugins/panel/table/module.ts
@@ -120,6 +120,11 @@ class TablePanelCtrl extends MetricsPanelCtrl {
120
121
122
toggleColumnSort(col, colIndex) {
123
+ // remove sort flag from current column
124
+ if (this.table.columns[this.panel.sort.col]) {
125
+ this.table.columns[this.panel.sort.col].sort = false;
126
+ }
127
+
128
if (this.panel.sort.col === colIndex) {
129
if (this.panel.sort.desc) {
130
this.panel.sort.desc = false;
0 commit comments