From 82fbd5359e406ed75f96f159ed27f59adc03efaf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 7 Oct 2022 10:04:07 +0200 Subject: [PATCH] DbObjectStore: sort by array index, not uuid --- library/Director/Data/Db/DbObjectStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);