docs: def from_coords(cls, coords, sort=True):
          """
          Create a mesh object from a list of 3D coordinates (by sorting them)
  
          :params coords: list of coordinates
          :param sort: flag (default True)
          :returns: a :class:`Mesh` instance
          """
          coords = list(coords)
          if sort:
              coords.sort()
          if len(coords[0]) == 2:  # 2D coordinates
              lons, lats = zip(*coords)
              depths = None
          else:  # 3D coordinates
              lons, lats, depths = zip(*coords)
              depths = numpy.array(depths)
          return cls(numpy.array(lons), numpy.array(lats), depths)