Skip to content

Commit

Permalink
sort response names in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ricwo committed Jul 29, 2020
1 parent c25af7a commit affa4b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rasa/core/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def combine_with_templates(
actions: List[Text], templates: Dict[Text, Any]
) -> List[Text]:
"""Combines actions with utter actions listed in responses section."""
unique_template_names = [a for a in list(templates.keys()) if a not in actions]
unique_template_names = [
a for a in sorted(list(templates.keys())) if a not in actions
]
return actions + unique_template_names


Expand Down

0 comments on commit affa4b6

Please sign in to comment.