original_docstring: 
      Sorts a 2D array along the column axis and returns sorted values
      together with sorted indices.
      
docstring: Sorts a 2D array along the column axis and returns sorted values
  together with sorted indices.
docstring_tokens: Sorts a 2D array along the column axis and returns sorted values together with sorted indices .
code: def _sort2d(m, reverse=False):
      """
      Sorts a 2D array along the column axis and returns sorted values
      together with sorted indices.
      """
  
      ids = np.argsort(m)
      ids_inds = _args2d_to_indices(ids)
      scores = m[ids_inds]
  
      if not reverse:
          ids = np.fliplr(ids)
          scores = np.fliplr(scores)
  
      return np.array(scores), np.array(ids)
code_tokens: def _sort2d ( m , reverse = False ) : ids = np . argsort ( m ) ids_inds = _args2d_to_indices ( ids ) scores = m [ ids_inds ] if not reverse : ids = np . fliplr ( ids ) scores = np . fliplr ( scores ) return np . array ( scores ) , np . array ( ids )
short_docstring: Sorts a 2D array along the column axis and returns sorted values
  together with sorted indices.
short_docstring_tokens: Sorts a 2D array along the column axis and returns sorted values together with sorted indices .
comment: """
      Sorts a 2D array along the column axis and returns sorted values
      together with sorted indices.
      """