parameters: (cell_fracs)
return_statement: return cell_fracs
docstring: Sort cell_fracs according to the order of increasing idx and decreasing
      with vol_frac.
  
      Parameters
      ----------
      cell_fracs : structured array
              The output from dagmc.discretize_geom(). A sorted, one dimensional
              array, each entry containing the following fields:
  
                  :idx: int
                      The volume element index.
                  :cell: int
                      The geometry cell number.
                  :vol_frac: float
                      The volume fraction of the cell withing the mesh ve.
                  :rel_error: float
                      The relative error associated with the volume fraction.
  
              The array must be sorted with respect to both idx and cell, with
              cell changing fastest.
  
      Returns
      -------
      cell_fracs : structured array
          Sorted cell_fracs.
docstring_summary: Sort cell_fracs according to the order of increasing idx and decreasing
      with vol_frac.
docstring_tokens: Sort cell_fracs according to the order of increasing idx and decreasing with vol_frac .
function: def _cell_fracs_sort_vol_frac_reverse(cell_fracs):
      """
      Sort cell_fracs according to the order of increasing idx and decreasing
      with vol_frac.
  
      Parameters
      ----------
      cell_fracs : structured array
              The output from dagmc.discretize_geom(). A sorted, one dimensional
              array, each entry containing the following fields:
  
                  :idx: int
                      The volume element index.
                  :cell: int
                      The geometry cell number.
                  :vol_frac: float
                      The volume fraction of the cell withing the mesh ve.
                  :rel_error: float
                      The relative error associated with the volume fraction.
  
              The array must be sorted with respect to both idx and cell, with
              cell changing fastest.
  
      Returns
      -------
      cell_fracs : structured array
          Sorted cell_fracs.
      """
  
      # sort ascending along idx and vol_frac
      # ndarray.sort can't sort using desending sequence.
      # Multiply the vol_frac to -1.0 to sort the vol_frac in reverse order.
      cell_fracs['vol_frac'] *= -1.0
      cell_fracs.sort(order=['idx', 'vol_frac'])
      cell_fracs['vol_frac'] *= -1.0
      return cell_fracs
function_tokens: def _cell_fracs_sort_vol_frac_reverse ( cell_fracs ) : # sort ascending along idx and vol_frac # ndarray.sort can't sort using desending sequence. # Multiply the vol_frac to -1.0 to sort the vol_frac in reverse order. cell_fracs [ 'vol_frac' ] *= - 1.0 cell_fracs . sort ( order = [ 'idx' , 'vol_frac' ] ) cell_fracs [ 'vol_frac' ] *= - 1.0 return cell_fracs