Skip to content

Commit b2164b4

Browse files
authored
fix: secondary tiebreaker sorting for orgs when they have the same contribution count (#3885)
1 parent f159e42 commit b2164b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/libs/tinybird/pipes/organizations_leaderboard.pipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SQL >
3535
FROM activities_filtered af
3636
JOIN organizations org FINAL ON org.id = af.organizationId
3737
GROUP BY org.id, org.logo, org.displayName
38-
ORDER BY contributionCount DESC
38+
ORDER BY contributionCount DESC, id desc
3939
LIMIT {{ Int32(limit, 10) }}
4040
OFFSET {{ Int32(offset, 0) }}
4141
{% end %}

0 commit comments

Comments
 (0)