diff: order by coalesced diff

This commit is contained in:
norohind committed 2021-12-01 14:16:26 +03:00
1 parent d37b836975
commit 7b48b5de66
1 file changed
+1 -1
+1 -1
View File
@@ -84,4 +84,4 @@ full join
limit 1)) old_stats
on new_stats.squadron_id = old_stats.squadron_id
where coalesce(new_stats.score, 0) - coalesce(old_stats.score, 0) <> 0
order by new_stats.score - old_stats.score desc;"""
order by coalesce(new_stats.score, 0) - coalesce(old_stats.score, 0) desc;"""