Can I sort values in a template field?

  • 1
  • Question
  • Updated 4 weeks ago
  • Answered
I have a template field which lists all child objects (permission sets) for a user. Can I order the values within the template field alphabetically? For example, if user Olya has 4 permissions (View Opps, Edit Accounts, Manage Templates, Delete Contacts) how do I get those 4 values in the field to be displayed alphabetically (Delete, Edit, Manage, View)?  
Photo of Olya Slyusar

Olya Slyusar

  • 150 Points 100 badge 2x thumb

Posted 4 weeks ago

  • 1
Photo of Michael Barnes

Michael Barnes

  • 200 Points 100 badge 2x thumb
In the model which queries for the child records, sort the model by name.
Photo of Olya Slyusar

Olya Slyusar

  • 150 Points 100 badge 2x thumb
Hi Michael,
Thanks for the response! But I am not using a model for child records, I have only one model (users) and I'm pulling in fields from a child record through Fields>Child Relationships. 
Photo of John Dahlberg

John Dahlberg, Champion

  • 2,564 Points 2k badge 2x thumb
In your Child Relationship, go to Properties and there's a spot to add the sort logic.
Photo of Olya Slyusar

Olya Slyusar

  • 150 Points 100 badge 2x thumb
Thank you, John, that solved it!!