sort signals alphabetically in template