Use natural sorting for trees and others repository functions

This commit is contained in:
Jan Böhmer 2024-06-17 22:33:40 +02:00
parent 9db822eabd
commit 8bb8118d9f
13 changed files with 71 additions and 44 deletions

View file

@ -90,7 +90,7 @@ class PartRepository extends NamedDBElementRepository
$qb->setParameter('query', '%'.$query.'%');
$qb->setMaxResults($max_limits);
$qb->orderBy('part.name', 'ASC');
$qb->orderBy('NATSORT(part.name)', 'ASC');
return $qb->getQuery()->getResult();
}