Fix #3: Order merge by reference geometry primitives order.