   """
 
   alias FarmbotCore.Asset.{
-    CriteriaRetriever,
+    Repo,
     Device,
     DeviceCert,
+    FarmwareEnv,
+    FirstPartyFarmware,
+    FarmwareInstallation,
     FarmEvent,
-    FarmwareEnv,
-    FarmwareInstallation,
     FbosConfig,
     FirmwareConfig,
-    FirstPartyFarmware,
     Peripheral,
     PinBinding,
     Point,

      %{sort_type: nil} = group ->
        group

      %{point_ids: _unsorted, sort_type: sort_by} = point_group ->
        sorted_and_augmented = CriteriaRetriever.run(point_group)
          |> sort_points(sort_by)
          |> Enum.map(&Map.fetch!(&1, :id))

        %{point_group | point_ids: sorted_and_augmented}
    end
  end


    PublicKey,
    Regimen,
    RegimenInstance,
    Sequence,
    Sensor,
    SensorReading,
    Tool
  }

