Skip to content

Commit

Permalink
refactor: order programming languages by use
Browse files Browse the repository at this point in the history
  • Loading branch information
dmijatovic committed Sep 7, 2023
1 parent 48ff209 commit d0d8461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/100-create-api-views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ BEGIN
SELECT
repository_url.software,
(SELECT
ARRAY_AGG(p_lang)
ARRAY_AGG(p_lang ORDER BY repository_url.languages -> p_lang DESC)
FROM
JSONB_OBJECT_KEYS(repository_url.languages) p_lang
) AS "prog_lang"
Expand Down

0 comments on commit d0d8461

Please sign in to comment.