mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
DbObjectStore: sort by array index, not uuid
This commit is contained in:
parent
773a135220
commit
82fbd5359e
@ -64,7 +64,7 @@ class DbObjectStore
|
||||
{
|
||||
$db = $this->connection->getDbAdapter();
|
||||
$class = DbObjectTypeRegistry::classByType($tableName);
|
||||
$query = $db->select()->from($tableName)->order('uuid');
|
||||
$query = $db->select()->from($tableName)->order($arrayIdx);
|
||||
$result = [];
|
||||
foreach ($db->fetchAll($query) as $row) {
|
||||
$result[$row->uuid] = $class::create((array) $row, $this->connection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user