volgorde orgs
This commit is contained in:
@@ -263,7 +263,7 @@ class Organisaties_model extends MY_Model{
|
||||
return $this->get_query_row();
|
||||
}
|
||||
function getbgsonderswv($swvid){
|
||||
$this->sql="SELECT O1.id, O1.soort, O1.naam, O1.plaats, O1.actief
|
||||
$this->sql="SELECT O1.id, O1.soort, O1.naam, O1.plaats, O1.actief, O2.naamkort AS kamer
|
||||
FROM tb_organisaties O1
|
||||
JOIN tb_organisaties O2 ON O2.id = O1.valtonder_id
|
||||
JOIN tb_organisaties O3 ON O3.id = O2.valtonder_id
|
||||
@@ -271,7 +271,7 @@ class Organisaties_model extends MY_Model{
|
||||
AND O1.id <> O3.valtonder_id
|
||||
AND O2.id <> O2.valtonder_id
|
||||
AND O1.actief = 1
|
||||
ORDER BY O1.naamkort ";
|
||||
ORDER BY O2.naamkort, O1.naamkort ";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user