Structures

Sorter

Updated 3/8/2026

Sorter

Deconstruction Steps

StepToolRecovered Item
1Hand DrillKit (Sorter)

Not to be confused with Logic Sorter.

Description

"No amount of automation is complete without some way of moving different items to different parts of a system. The Xigo A2B sorter can be programmed via a computer with a Sorter Motherboard to direct various items into different chute networks. Filtered items are always passed out the righthand side of the sorter, while non filtered items continue straight through." — Stationpedia

Mode 0 (Split): Items alternate between output lanes automatically. The Output property switches between 0 and 1 after each item.

Mode 1 (Filter): Requires a computer with a Motherboard (Sorter). Whitelisted items exit one lane, all others exit the alternate lane. When facing the output side (power switch on your right), whitelisted items exit left, rejected items exit right. Note: Some players report issues with the Motherboard (Sorter) interface. Consider using Mode 2 (Logic) with IC10 as a more reliable alternative.

Mode 2 (Logic): The sorter waits for IC10 or logic chips to set the Output parameter (0 or 1) before releasing each item. After the item exits, Output resets to -1 automatically. Your controller must set Output for every item - this is intended behavior, not a bug. See Example IC10 sorting script below for a working implementation.

Output orientation: When facing outputs with power switch on your right: Output 0 exits right (near power switch), Output 1 exits left.

Data Network

ParameterTypeAccessDescription
PowerBooleanReadCan be read to return if the Sorter is correctly powered or not, set via the power system, return 1 if powered and 0 if not
ModeIntegerRead/WriteThe mode of the Sorter, Split does alternate outputs, Filter decides output via Motherboard (Sorter), Logic determines output via parameter Output
ErrorBooleanRead1 if device is in error state, otherwise 0
LockBooleanRead/WriteDisable manual operation of the Sorter.
OnBooleanRead/WriteThe current state of the Sorter.
RequiredPowerIntegerReadIdle operating power quantity, does not necessarily include extra demand power
ClearMemoryIntegerRead/Writer=0
ExportCountIntegerReadHow many items exported since last ClearMemory
ImportCountIntegerReadHow many items imported since last ClearMemory
OutputIntegerRead/WriteDecides which side the next item will be sent to.
In Logic mode, defaults to -1 after action. In Split mode, alternates between 0 and 1 after action. Does nothing in Filter mode.
When set to 0 the item will exit the output slot closest to the power switch. When set to 1, the item will exit the slot furthest from the power switch.
PrefabHashIntegerReadThe hash of the structure
ReferenceIdIntegerReadUnique Reference Identifier for this object
NameHashIntegerReadProvides the hash value for the name of the object as a 32 bit integer.

Data Slots

These are all parameters, that can be read with a Slots Reader. The outputs are listed in the order a Slots Reader's "VAR" setting cycles through them. | Number || Name | Description | |---|---| | 0 | Import | | 1 | Export (accept) | | 2 | Export (reject) | | 3 | Data Disk |

NameData TypeDescription
MaxQuantityIntegerReturns maximum stacksize.
DamageIntegerItem durability in percent.
ClassIntegerItem class ID.
QuantityIntegerSize of stack.
PrefabHashIntegerReturns ItemHash of item in slot.
OccupiedBooleanReturns whether the slot occupied. (0 for no, 1 for yes).
OccupantHashIntegerReturns ItemHash of item in slot.

Item Slot Classes / Types

Reading the class attribute of the input slot will give one of the following values:

Note that you can use <pre style="display: inline">SlotClass.<Item></pre> directly in IC code instead of the numeric value

  • NOTE The classes listed in this section are FilterSlotTypeCompare and NOT sorting class.
+ Item values and descriptionsItemValueDescriptionItemValueDescriptionItemValueDescription
None0Helmet1Suit2
Back3GasFilter4GasCanister5
Motherboard6Circuitboard7DataDisk8
Organ9Ore10Includes reagent mixes from recycler and icesPlant11
Uniform12Entity13Battery14
Egg15Belt16Tool17
Appliance18Ingot19Torpedo20
Cartridge21AccessCard22Magazine23
Circuit24Bottle25This refers to Paint CanProgrammableChip26
Glasses27CreditCard28DirtCanister29
SensorProcessingUnit30LiquidCanister31LiquidBottle32
Wreckage33SoundCartridge34DrillHead35
ScanningHead36Flare37Blocked38
SuitMod39Crate40Portables41

Example IC10 sorting script

Basic ingot sorter - filters one item type to the left output, rejects everything else to the right.

<pre> 1. Ingot Sorter Controller 1. When facing outputs (power switch on right): matched items exit left, rejected exit right 1. Setup: 1. 1. Connect d0 to the sorter 1. 2. Change hTarget to match your desired ingot define hTarget HASH("ItemIronIngot") alias dSorter d0 alias vHash r0 alias vOutput r1 s dSorter Mode 2 # Logic mode s dSorter On 1 # Turn on main: ls vHash dSorter 0 OccupantHash # Read import slot beqz vHash skip # Empty - skip processing seq vOutput vHash hTarget # 1=match, 0=reject s dSorter Output vOutput skip: yield j main </pre>