Commit 5a93960
authored
fix(explore): Preserve sort when adding group by (#81258)
We use the first available option to sort when there's no sort
specified. In aggregate mode, when adding a group by, the first option
changes from the aggregate function to the group by field thus
implicitly changing the sort. This ensures that the aggregate functions
are higher in the list so the default sort doesnt change when the group
by changes.1 parent 0dfc654 commit 5a93960
File tree
2 files changed
+9
-2
lines changed- static/app/views/explore
- tables
- toolbar
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments