DbObjectStore: sort by array index, not uuid

This commit is contained in:
Thomas Gelf 2022-10-07 10:04:07 +02:00
parent 773a135220
commit 82fbd5359e

View File

@ -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);