fix: people ordering by asset count (#19366)

This commit is contained in:
Zack Pollard 2025-06-20 13:34:04 +01:00 committed by GitHub
parent a5ed453929
commit 00aa385972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 15 deletions

View file

@ -35,8 +35,9 @@ having
order by
"person"."isHidden" asc,
"person"."isFavorite" desc,
NULLIF(person.name, '') asc nulls last,
NULLIF(person.name, '') is null asc,
count("asset_faces"."assetId") desc,
NULLIF(person.name, '') asc nulls last,
"person"."createdAt"
limit
$5