Template collection: indexOf + swap.