From d4e170037ba21641da0d65d15586bc8e08e5b15d Mon Sep 17 00:00:00 2001 From: ma0068 Date: Mon, 18 May 2026 10:11:17 +0200 Subject: [PATCH] add order Nachname, Vorname --- application/models/person/Person_model.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/application/models/person/Person_model.php b/application/models/person/Person_model.php index 636e26a4c..e02229624 100644 --- a/application/models/person/Person_model.php +++ b/application/models/person/Person_model.php @@ -173,8 +173,13 @@ class Person_model extends DB_Model LIMIT 1 ) AS uid"); - $this->addOrder('uid'); - }; + $this->addOrder('uid, lower(nachname), lower(vorname)'); + } + else + { + $this->addOrder('lower(nachname), lower(vorname)'); + } + $result = $this->loadWhere( 'lower(nachname) like '.$this->db->escape('%'.mb_strtolower($filter).'%')."