Skip to content

Commit

Permalink
Sort templateselect alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Valchev authored and bobdenotter committed Nov 28, 2020
1 parent a07c401 commit d26b2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Twig/ContentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ public function getListTemplates(TemplateselectField $field): Collection
->files()
->in($templatesPath)
->name($definition->get('filter', '/^[^_].*\.twig$/'))
->path($definition->get('path'));
->path($definition->get('path'))
->sortByName();

$options = [];

Expand Down

0 comments on commit d26b2a9

Please sign in to comment.