code: def _reorder_nirx(raw):
      # Maybe someday we should make this public like
      # mne.preprocessing.nirs.reorder_standard(raw, order='nirx')
      info = raw.info
      picks = pick_types(info, fnirs=True, exclude=[])
      prefixes = [info["ch_names"][pick].split()[0] for pick in picks]
      nirs_names = [info["ch_names"][pick] for pick in picks]
      nirs_sorted = sorted(
          nirs_names,
          key=lambda name: (
              prefixes.index(name.split()[0]),
              name.split(maxsplit=1)[1],
          ),
      )
      raw.reorder_channels(nirs_sorted)
  
file_path: mne-python/mne/preprocessing/nirs/nirs.py
imports: import re
  import numpy
  from ..._fiff.pick import _picks_to_idx, pick_types
  from ...utils import _check_option, _validate_type, fill_doc
label_desc: Use image node_id 11 for calling a global function with example usage: _reorder_nirx(raw) without return types