code: def sort(cls, dataset, by=None, reverse=False):
      if by is None:
          by = []
      geo_dims = cls.geom_dims(dataset)
      if any(d in geo_dims for d in by):
          raise DataError(
              "SpatialPandasInterface does not allow sorting "
              "by geometry dimension.",
              cls,
          )
      return PandasInterface.sort(dataset, by, reverse)
  
imports: import sys
  import warnings
  from collections import defaultdict
  import numpy
  import pandas
  from holoviews.core.util import isscalar, unique_iterator, unique_array
  from holoviews.core.data import Dataset, Interface, MultiInterface, PandasAPI
  from holoviews.core.data.interface import DataError
  from holoviews.core.data import PandasInterface
  from holoviews.core.data.spatialpandas import get_value_array
  from holoviews.core.dimension import dimension_name
  from holoviews.element import Path
  from ..util import asarray, geom_to_array, geom_types, geom_length
  from .geom_dict import geom_from_dict
label_desc: Use image node_id 21 for calling the GeoPandasInterface obj's underlying member method code with example usage: obj.sort(cls, dataset, by, reverse) and returns: PandasInterface