Browse Source

feat(starfish): make orderby consistent across db module (#48026)

Dominik Buszowiecki 1 year ago
parent
commit
ba80998c25
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/views/starfish/modules/databaseModule/queries.js

+ 2 - 1
static/app/views/starfish/modules/databaseModule/queries.js

@@ -115,7 +115,7 @@ export const getPanelTableQuery = (date_filters, row) => {
       ${date_filters} and
       group_id = '${row.group_id}'
     GROUP BY transaction
-    ORDER BY count DESC
+    ORDER BY ${ORDERBY}
     LIMIT 10
   `;
 };
@@ -147,6 +147,7 @@ export const getPanelEventCount = (date_filters, row) => {
       ${date_filters} and
       group_id = '${row.group_id}'
     GROUP BY transaction
+    ORDER BY ${ORDERBY}
    `;
 };