Skip to content

Commit 3179f82

Browse files
committed
quick fix sorting
1 parent 3dbc255 commit 3179f82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

definitions/output/reports/tech_report_categories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ technology_stats AS (
7171
SELECT
7272
technology,
7373
category_obj AS categories,
74-
SUM(origins.mobile + origins.desktop) AS total_origins
74+
origins.mobile AS mobile_origins
7575
FROM ${ctx.ref('reports', 'tech_report_technologies')}
7676
GROUP BY
7777
technology,
@@ -82,7 +82,7 @@ SELECT
8282
category,
8383
description,
8484
origins,
85-
ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.total_origins DESC) AS technologies
85+
ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.mobile_origins DESC) AS technologies
8686
FROM category_stats
8787
INNER JOIN technology_stats
8888
ON category_stats.category IN UNNEST(technology_stats.categories)

0 commit comments

Comments
 (0)