data.raw.item["burner-inserter"].order = "e[inserter]-a[burner]"
data.raw.item["inserter"].order = "e[inserter]-b[standard]"
data.raw.item["long-handed-inserter"].order = "e[inserter]-c[fast]"
data.raw.item["filter-inserter"].order = "e[inserter]-c[fast]-b[filter]"
data.raw.item["fast-inserter"].order = "e[inserter]-d[express]"
data.raw.item["stack-inserter"].order = "e[inserter]-d[express]-c[stack]"
data.raw.item["stack-filter-inserter"].order = "e[inserter]-d[express]-d[stack-filter]"

data:extend(
{
  {
    type = "item",
    name = "express-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/cyan-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-f[ultimate]",
    place_result = "express-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "express-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/magenta-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-f[ultimate]-b[filter]",
    place_result = "express-filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "express-stack-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/dark-green-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-f[ultimate]-c[stack]",
    place_result = "express-stack-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "express-stack-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/stripe-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-f[ultimate]-d[stack-filter]",
    place_result = "express-stack-filter-inserter",
    stack_size = 50
  },
}
)


if settings.startup["bobmods-logistics-inserteroverhaul"].value == true then

data.raw.item["burner-inserter"].subgroup = "bob-logistic-tier-0"
data.raw.item["inserter"].subgroup = "bob-logistic-tier-1"

data.raw.item["express-inserter"].subgroup = "bob-logistic-tier-5"
data.raw.item["express-filter-inserter"].subgroup = "bob-logistic-tier-5"
data.raw.item["express-stack-inserter"].subgroup = "bob-logistic-tier-5"
data.raw.item["express-stack-filter-inserter"].subgroup = "bob-logistic-tier-5"

data.raw.item["filter-inserter"].icon = "__boblogistics__/graphics/icons/inserter/red-filter-inserter.png"
data.raw.item["stack-inserter"].icon = "__boblogistics__/graphics/icons/inserter/blue-stack-inserter.png"
data.raw.item["stack-filter-inserter"].icon = "__boblogistics__/graphics/icons/inserter/blue-stack-filter-inserter.png"

data.raw.item["express-inserter"].icon = "__boblogistics__/graphics/icons/inserter/purple-inserter.png"
data.raw.item["express-filter-inserter"].icon = "__boblogistics__/graphics/icons/inserter/purple-filter-inserter.png"
data.raw.item["express-stack-inserter"].icon = "__boblogistics__/graphics/icons/inserter/purple-stack-inserter.png"
data.raw.item["express-stack-filter-inserter"].icon = "__boblogistics__/graphics/icons/inserter/purple-stack-filter-inserter.png"


data:extend(
{
  {
    type = "item",
    name = "yellow-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/yellow-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-1",
    order = "e[inserter]-b[standard]-b[filter]",
    place_result = "yellow-filter-inserter",
    stack_size = 50
  },

  {
    type = "item",
    name = "red-inserter",
    icon = "__base__/graphics/icons/long-handed-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-c[fast]",
    place_result = "long-handed-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "long-handed-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/red-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-2",
    order = "e[inserter]-c[fast]",
    place_result = "red-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "red-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/red-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-2",
    order = "e[inserter]-c[fast]-b[filter]",
    place_result = "red-filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "red-stack-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/red-stack-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-2",
    order = "e[inserter]-c[fast]-c[stack]",
    place_result = "red-stack-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "red-stack-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/red-stack-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-2",
    order = "e[inserter]-c[fast]-d[stack-filter]",
    place_result = "red-stack-filter-inserter",
    stack_size = 50
  },

  {
    type = "item",
    name = "blue-inserter",
    icon = "__base__/graphics/icons/fast-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-d[express]",
    place_result = "fast-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "fast-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-3",
    order = "e[inserter]-d[express]",
    place_result = "blue-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "blue-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-d[express]-b[filter]",
    place_result = "filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-3",
    order = "e[inserter]-d[express]-b[filter]",
    place_result = "blue-filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "blue-stack-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-stack-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-d[express]-c[stack]",
    place_result = "stack-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "stack-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-stack-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-3",
    order = "e[inserter]-d[express]-c[stack]",
    place_result = "blue-stack-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "blue-stack-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-stack-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "inserter",
    order = "e[inserter]-d[express]-d[stack-filter]",
    place_result = "stack-filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "stack-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/blue-stack-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-3",
    order = "e[inserter]-d[express]-d[stack-filter]",
    place_result = "blue-stack-filter-inserter",
    stack_size = 50
  },

  {
    type = "item",
    name = "green-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/green-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-4",
    order = "e[inserter]-e[turbo]",
    place_result = "green-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "green-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/green-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-4",
    order = "e[inserter]-e[turbo]-b[filter]",
    place_result = "green-filter-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "green-stack-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/green-stack-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-4",
    order = "e[inserter]-e[turbo]-c[stack]",
    place_result = "green-stack-inserter",
    stack_size = 50
  },
  {
    type = "item",
    name = "green-stack-filter-inserter",
    icon = "__boblogistics__/graphics/icons/inserter/green-stack-filter-inserter.png",
    icon_size = 32,
    flags = {"goes-to-quickbar"},
    subgroup = "bob-logistic-tier-4",
    order = "e[inserter]-e[turbo]-d[stack-filter]",
    place_result = "green-stack-filter-inserter",
    stack_size = 50
  },
}
)

end

