Generate write order data