Or a “negative lag” to look down Cod2 in order to test if it falls sequentially so that it can be moved to a new column.
This negative lag style approach may also now be possible just using the Column Expression node with the recent addition of multi-row support, but I haven’t had time to delve into it yet…