From 21e2a98604eddfdc16bf37b64c7fd0abb9949a28 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 5 Oct 2023 13:20:18 -0500 Subject: [PATCH] order null donations to last position --- src/repositories/projectRepository.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repositories/projectRepository.ts b/src/repositories/projectRepository.ts index 5e206baa9..db9b2fa42 100644 --- a/src/repositories/projectRepository.ts +++ b/src/repositories/projectRepository.ts @@ -181,6 +181,7 @@ export const filterProjectsQuery = (params: FilterProjectQueryInputParams) => { .orderBy( 'projectEstimatedMatchingView.sumValueUsd', OrderDirection.DESC, + 'NULLS LAST', ) .addOrderBy(`project.verified`, OrderDirection.DESC); }