nodes: 0, module; 1, function_definition; 2, function_name:_sorted_actions; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, for_statement; 8, for_statement; 9, for_statement; 10, comment:"""
          Generate the sorted list of actions based on the "last" attribute.
          """; 11, identifier:a; 12, call; 13, block; 14, identifier:a; 15, call; 16, block; 17, identifier:a; 18, call; 19, block; 20, identifier:filter; 21, argument_list; 22, expression_statement; 23, identifier:filter; 24, argument_list; 25, expression_statement; 26, identifier:filter; 27, argument_list; 28, expression_statement; 29, lambda; 30, attribute; 31, yield; 32, lambda; 33, attribute; 34, yield; 35, lambda; 36, attribute; 37, yield; 38, lambda_parameters; 39, boolean_operator; 40, identifier:self; 41, identifier:_actions; 42, identifier:a; 43, lambda_parameters; 44, boolean_operator; 45, identifier:self; 46, identifier:_actions; 47, identifier:a; 48, lambda_parameters; 49, call; 50, identifier:self; 51, identifier:_actions; 52, identifier:a; 53, identifier:_; 54, not_operator; 55, line_continuation:\; 56, not_operator; 57, identifier:_; 58, attribute; 59, line_continuation:\; 60, not_operator; 61, identifier:_; 62, attribute; 63, argument_list; 64, attribute; 65, call; 66, identifier:_; 67, identifier:last; 68, call; 69, identifier:self; 70, identifier:is_action; 71, identifier:_; 72, string; 73, identifier:_; 74, identifier:last; 75, attribute; 76, argument_list; 77, attribute; 78, argument_list; 79, string_content:parsers; 80, identifier:self; 81, identifier:is_action; 82, identifier:_; 83, string; 84, identifier:self; 85, identifier:is_action; 86, identifier:_; 87, string; 88, string_content:parsers; 89, string_content:parsers
code: def _sorted_actions(self):
          """
          Generate the sorted list of actions based on the "last" attribute.
          """
          for a in filter(lambda _: not _.last and \
                          not self.is_action(_, 'parsers'), self._actions):
              yield a
          for a in filter(lambda _: _.last and \
                          not self.is_action(_, 'parsers'), self._actions):
              yield a
          for a in filter(lambda _: self.is_action(_, 'parsers'),
                          self._actions):
              yield a