Freshness Sorter

by Morlot

An inserter that routes items by % freshness — fresh items go one way, spoiled items the other. Threshold, mode and side are set per sorter.

Content
2 days ago
2.0 - 2.1
262
Factorio: Space Age Icon Space Age Mod
Logistics

Changelog

Version: 2.0.0
Date: 21.10.2026
  Major Features:
    - Every sorter has its own settings window next to the inserter GUI: mode, freshness
      threshold, no-match side and route for non-spoilable items.
    - While the window is open, labels on the output tiles show what goes where.
    - Settings are kept in blueprints, copy/paste, ghosts and when a sorter is rebuilt
      after being destroyed.
    - Undo and redo restore the sorter settings after mining, deconstruction and copy/paste.
  Changes:
    - The startup settings were replaced by the settings window.
    - Sorters in existing saves take over the values of the old startup settings once.
  Bugfixes:
    - Sorters built by a space platform or cloned by a script now start working right away
      instead of only after the next load.
    - Fixed possible desyncs in multiplayer when a player joins while gate sorters are active.
Version: 1.1.0
Date: 23.08.2026
  Features:
    - New startup setting "Mode": the existing "Route" plus two new gate modes.
    - Gate mode only picks up items that meet the freshness threshold and leaves the
      rest untouched. Everything picked up is dropped in the facing direction.
    - "Gate - at or above threshold" keeps fresh stock moving, "Gate - below threshold"
      pulls out only what has already spoiled past the threshold.
    - While a gate sorter has nothing to do it idles and shows a deny icon.
  Info:
    - Gate mode was suggested by KakoSan on the mod portal. Thanks for the idea!
    - Gate mode reads from chests and machines only, not from belts.
    - In gate mode the sorter controls its own filter and stack size override.
      Player settings on those two are overwritten.
    - Non-spoilable items are never picked up in gate mode.
Version: 1.0.1
Date: 15.07.2026
  Compatibility:
    - Updated for Factorio 2.1
Version: 1.0.0
Date: 16.05.2026
  Major Features:
    - Initial release