- In
- Reversed
Reverse List does what it says: takes any list and hands it back in reverse order. In in one side, Reversed out the other. No settings, no options, nothing to configure - the entire node is one input, one output, and a Python slice (In[::-1]) in the middle. It's the smallest node in the pack and it doesn't need to be bigger.
Why would you ever want to reverse a list? It comes up more than you'd think, almost always for ordering. ComfyUI's batch and grid machinery cares about the order things arrive in, and sometimes the natural generation order isn't the order you want on screen. Feed the pack's range nodes a descending seed sweep and you're halfway to a reverse, but if you've already got a list built the other way, this is the one-click flip instead of rebuilding it.
Realistic spots it earns its keep: a grid that reads top-down when you wanted bottom-up (flip the axis list feeding XYAny or XYImage labels), seeds that should run high-to-low so the "interesting" ones land first, or undoing the order a join produced when you merged lists in the wrong sequence. It's also the kind of node that shows up in larger workflows as a tidy way to say "same data, different direction" without touching anything else.
Because the input is * (any type), it works on string lists, int lists, float lists, or image lists alike. It's list-aware, so a single value becomes a one-element list and comes back unchanged - no error, just nothing to reverse. There's genuinely no failure mode to warn you about here; the only way to be surprised is to expect it to reverse inside a batch (it won't - a 4-image tensor is one item to this node, and reversing the batch order is a different operation).
Scope check: this is a utility in the purest sense, the kind of node you use for thirty seconds and forget about. It's worth having installed precisely because ComfyUI's list support makes ordering a first-class concern, and ordering is where the cheap wins are.
Install is the same for the whole pack - no dependencies, no models:
cd ComfyUI/custom_nodes
git clone https://github.com/M1kep/Comfy_KepListStuff
Restart ComfyUI or install Comfy_KepListStuff via Manager; it's under List Stuff as "Reverse List". Wire a list in, get it backwards.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| In | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Reversed | * | — |