code: def fwd_grad_sort(g, ans, x, axis=-1, kind="quicksort", order=None):
      sort_perm = anp.argsort(x, axis, kind, order)
      return g[sort_perm]
  
file_path: autograd/autograd/numpy/numpy_jvps.py
imports: from .None import numpy_wrapper
  from .numpy_vjps import untake, balanced_eq, match_complex, replace_zero, dot_adjoint_0, dot_adjoint_1, tensordot_adjoint_0, tensordot_adjoint_1, nograd_functions
  from autograd.extend import defjvp, defjvp_argnum, def_linear, vspace, JVPNode, register_notrace
  from ..util import func
  from .numpy_boxes import ArrayBox
label_desc: Use image node_id 5 for calling a global function with example usage: fwd_grad_sort(g, ans, x, axis, kind, order) and returns: g