Order subjects by automation_run_id and id

[MAILPOET-4966]
This commit is contained in:
David Remer
2023-03-01 08:04:57 +02:00
committed by Aschepikov
parent 286cd94135
commit fa73c3bc26

View File

@@ -84,7 +84,7 @@ class AutomationRunStorage {
$automationRunIds = array_column($automationRuns, 'id');
$sql = sprintf(
"SELECT * FROM $subjectTable WHERE automation_run_id in (%s) order by automation_run_id",
"SELECT * FROM $subjectTable WHERE automation_run_id in (%s) order by automation_run_id, id",
implode(
',',
array_map(