Tricky operation (reordering) in a sequence body()

In reply to new_to_uvm:

Storing in temporary queue and looking for the next required type may work. But assume a situation where you get a single type for quite some time. It will make the queue bigger and things will get out of control.