sort the templates so tests pass consistently