parameters: (self)
docstring: Sort timesteps so that they are in ascending order.
docstring_summary: Sort timesteps so that they are in ascending order.
docstring_tokens: Sort timesteps so that they are in ascending order .
function: def _sort_timesteps(self):
          """Sort timesteps so that they are in ascending order."""
          index_map = [self.timesteps.index(x) for x in sorted(self.timesteps)]
          self._reorder_list(self.timesteps, index_map)
          for element_block_id in self.get_element_block_ids():
              fields = self._get_element_block_fields(element_block_id)
              for values in list(fields.values()):
                  self._reorder_list(values, index_map)
          for values in list(self.node_fields.values()):
              self._reorder_list(values, index_map)
          for values in list(self.global_variables.values()):
              self._reorder_list(values, index_map)
          for node_set_id in self.get_node_set_ids():
              fields = self._get_node_set_fields(node_set_id)
              for values in list(fields.values()):
                  self._reorder_list(values, index_map)
          for side_set_id in self.get_side_set_ids():
              fields = self._get_side_set_fields(side_set_id)
              for values in list(fields.values()):
                  self._reorder_list(values, index_map)
function_tokens: def _sort_timesteps ( self ) : index_map = [ self . timesteps . index ( x ) for x in sorted ( self . timesteps ) ] self . _reorder_list ( self . timesteps , index_map ) for element_block_id in self . get_element_block_ids ( ) : fields = self . _get_element_block_fields ( element_block_id ) for values in list ( fields . values ( ) ) : self . _reorder_list ( values , index_map ) for values in list ( self . node_fields . values ( ) ) : self . _reorder_list ( values , index_map ) for values in list ( self . global_variables . values ( ) ) : self . _reorder_list ( values , index_map ) for node_set_id in self . get_node_set_ids ( ) : fields = self . _get_node_set_fields ( node_set_id ) for values in list ( fields . values ( ) ) : self . _reorder_list ( values , index_map ) for side_set_id in self . get_side_set_ids ( ) : fields = self . _get_side_set_fields ( side_set_id ) for values in list ( fields . values ( ) ) : self . _reorder_list ( values , index_map )