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 byin_list
and reassign them toin_list
.