Added sorting to boon templates.