Make sure the order stays stable

[MAILPOET-2742]
This commit is contained in:
Pavel Dohnal
2020-04-20 08:54:53 +02:00
committed by Veljko V
parent eb7dab84c4
commit 3f949dfe24

View File

@ -103,7 +103,7 @@ class DisplayFormInWPContent {
* @return array<string, FormEntity>
*/
private function getForms(): array {
$forms = $this->formsRepository->findBy(['deletedAt' => null]);
$forms = $this->formsRepository->findBy(['deletedAt' => null], ['updatedAt' => 'ASC']);
$forms = $this->filterOneFormInEachDisplayType($forms);
return $forms;
}