nodes: 0, module; 1, function_definition; 2, function_name:_get_sorted_action_keys; 3, parameters; 4, block; 5, identifier:self; 6, identifier:keys_list; 7, expression_statement; 8, comment:# The names can be found in reflexrulewidget.pt inside the; 9, comment:# Reflex action rules list section.; 10, expression_statement; 11, for_statement; 12, expression_statement; 13, return_statement; 14, comment:"""
          This function returns only the elements starting with 'action-' in
          'keys_list'. The returned list is sorted by the index appended to
          the end of each element
          """; 15, assignment; 16, identifier:key; 17, identifier:keys_list; 18, block; 19, call; 20, identifier:action_list; 21, identifier:action_list; 22, list; 23, if_statement; 24, attribute; 25, argument_list; 26, call; 27, block; 28, identifier:action_list; 29, identifier:sort; 30, attribute; 31, argument_list; 32, expression_statement; 33, identifier:key; 34, identifier:startswith; 35, string; 36, call; 37, string_content:action-; 38, attribute; 39, argument_list; 40, identifier:action_list; 41, identifier:append; 42, identifier:key
code: def _get_sorted_action_keys(self, keys_list):
          """
          This function returns only the elements starting with 'action-' in
          'keys_list'. The returned list is sorted by the index appended to
          the end of each element
          """
          # The names can be found in reflexrulewidget.pt inside the
          # Reflex action rules list section.
          action_list = []
          for key in keys_list:
              if key.startswith('action-'):
                  action_list.append(key)
          action_list.sort()
          return action_list