diff --git a/modules/cms/widgets/TemplateList.php b/modules/cms/widgets/TemplateList.php index 8347f06dd..2832657de 100644 --- a/modules/cms/widgets/TemplateList.php +++ b/modules/cms/widgets/TemplateList.php @@ -161,7 +161,7 @@ class TemplateList extends WidgetBase } usort($normalizedItems, function ($a, $b) { - return strcmp($a->title, $b->title); + return strcmp($a->fileName, $b->fileName); }); /*