diff --git a/library/Director/Data/Db/DbObjectStore.php b/library/Director/Data/Db/DbObjectStore.php index cc2a8836..f2445c8c 100644 --- a/library/Director/Data/Db/DbObjectStore.php +++ b/library/Director/Data/Db/DbObjectStore.php @@ -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);