code: def gs_sorted(gs):
      result = pd.concat(
          [
              gs[gs.type == "Point"],
              gs[gs.type == "MultiPoint"],
              gs[gs.type == "LineString"],
              gs[gs.type == "MultiLineString"],
              gs[gs.type == "Polygon"],
              gs[gs.type == "MultiPolygon"],
          ]
      )
      return result.reset_index(drop=True)
  
imports: import cupy
  import geopandas
  import numpy
  import pandas
  import pytest
  import pytest_cases
  from numba import cuda
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  import cudf
  import cuspatial
label_desc: Use image node_id 3 for calling a global function with example usage: gs_sorted(gs) and returns: result