mirror of https://github.com/apache/druid.git
swap ordering clauses in the menu (#8473)
This commit is contained in:
parent
85119b8721
commit
bffaca672a
|
@ -117,13 +117,6 @@ export class QueryOutput extends React.PureComponent<QueryOutputProps> {
|
||||||
}
|
}
|
||||||
if (!basicActions.length) {
|
if (!basicActions.length) {
|
||||||
basicActions.push(
|
basicActions.push(
|
||||||
{
|
|
||||||
icon: IconNames.SORT_ASC,
|
|
||||||
title: `Order by: ${h} ASC`,
|
|
||||||
onAction: () => {
|
|
||||||
onQueryChange(parsedQuery.orderBy(h, 'ASC'), true);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: IconNames.SORT_DESC,
|
icon: IconNames.SORT_DESC,
|
||||||
title: `Order by: ${h} DESC`,
|
title: `Order by: ${h} DESC`,
|
||||||
|
@ -131,6 +124,13 @@ export class QueryOutput extends React.PureComponent<QueryOutputProps> {
|
||||||
onQueryChange(parsedQuery.orderBy(h, 'DESC'), true);
|
onQueryChange(parsedQuery.orderBy(h, 'DESC'), true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: IconNames.SORT_ASC,
|
||||||
|
title: `Order by: ${h} ASC`,
|
||||||
|
onAction: () => {
|
||||||
|
onQueryChange(parsedQuery.orderBy(h, 'ASC'), true);
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
basicActions.push({
|
basicActions.push({
|
||||||
|
|
Loading…
Reference in New Issue