mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 15:58:19 +01:00
Use natural sorting for trees and others repository functions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user