original_docstring: Topological sort of the steps returning the ids of the steps.
docstring: Topological sort of the steps returning the ids of the steps.
docstring_tokens: Topological sort of the steps returning the ids of the steps .
code: def order_steps(story_steps):
          # type: (List[StoryStep]) -> Tuple[deque, Set[Tuple[Text, Text]]]
          """Topological sort of the steps returning the ids of the steps."""
  
          checkpoints = StoryGraph._group_by_start_checkpoint(story_steps)
          graph = {s.id: {other.id
                          for end in s.end_checkpoints
                          for other in checkpoints[end.name]}
                   for s in story_steps}
          return StoryGraph.topological_sort(graph)
code_tokens: def order_steps ( story_steps ) : checkpoints = StoryGraph . _group_by_start_checkpoint ( story_steps ) graph = { s . id : { other . id for end in s . end_checkpoints for other in checkpoints [ end . name ] } for s in story_steps } return StoryGraph . topological_sort ( graph )
short_docstring: Topological sort of the steps returning the ids of the steps.
short_docstring_tokens: Topological sort of the steps returning the ids of the steps .
comment: # type: (List[StoryStep]) -> Tuple[deque, Set[Tuple[Text, Text]]]$SEP$"""Topological sort of the steps returning the ids of the steps."""