The code to re-org all transactions in a block so transactions that depend on others are processed after those they depend on had a silly bug (missing line), fixed that but also made it unit-testable to demonstrate the bug.