Can I sort values in a template field?

In your Child Relationship, go to Properties and there’s a spot to add the sort logic.