IB - periodic order

@tartufo shared a way in this post