code: def _sort_tvals(tvals, t0):
      # TODO: add warning if tvals come before t0?
      tvals = tvals[tvals >= t0]
      return torch.sort(tvals).values
  
imports: import bisect
  import collections
  import torch
  from .event_handling import find_event
  from .interp import _interp_evaluate, _interp_fit
  from .misc import _compute_error_ratio, _select_initial_step, _optimal_step_size
  from .misc import Perturb
  from .solvers import AdaptiveStepsizeEventODESolver
label_desc: Use image node_id 5 for calling a global function with example usage: _sort_tvals(tvals, t0) and returns: torch