Fix Patron sort

This commit is contained in:
Alex Cabal 2022-07-24 22:13:46 -05:00
parent fe247568bb
commit 020ef88b83

View file

@ -13,7 +13,7 @@ $patronsCircle = Db::Query('SELECT if(p.AlternateName is not null, p.AlternateNa
where
p.IsAnonymous = false
and p.Ended is null
order by regexp_substr(SortedName, "[\\\p{Lu}][\\\p{L}\-]+$") asc;
order by regexp_substr(SortedName, "[\\\p{Lu}][\\\p{L}\-]*$") asc;
');
$anonymousPatronCount = Db::QueryInt('SELECT sum(cnt)