swap ordering clauses in the menu (#8473)

This commit is contained in:
Vadim Ogievetsky 2019-09-05 14:59:28 -07:00 committed by Clint Wylie
parent 85119b8721
commit bffaca672a
1 changed files with 7 additions and 7 deletions

View File

@ -117,13 +117,6 @@ export class QueryOutput extends React.PureComponent<QueryOutputProps> {
}
if (!basicActions.length) {
basicActions.push(
{
icon: IconNames.SORT_ASC,
title: `Order by: ${h} ASC`,
onAction: () => {
onQueryChange(parsedQuery.orderBy(h, 'ASC'), true);
},
},
{
icon: IconNames.SORT_DESC,
title: `Order by: ${h} DESC`,
@ -131,6 +124,13 @@ export class QueryOutput extends React.PureComponent<QueryOutputProps> {
onQueryChange(parsedQuery.orderBy(h, 'DESC'), true);
},
},
{
icon: IconNames.SORT_ASC,
title: `Order by: ${h} ASC`,
onAction: () => {
onQueryChange(parsedQuery.orderBy(h, 'ASC'), true);
},
},
);
}
basicActions.push({