Model Templates : Activity Interface Report : Activity Interface Report Segment Section : Alphabetizing and Sorting the List

Alphabetizing and Sorting the List

To alphabetize all the elements in the lists, regardless of type, use the operation for union “+” to create a combined list of all the input elements; this list is designated by the variable in_list. The template uses a special utility function to sort by name the elements represented by in_list and reassign them to in_list.