Hello -- this is all about constructing a sequence of mahimahi link emulators. Each emulator applies some modeled link effect, e.g. a "delay" or a "loss" or an "onoff" (burst loss) a bottleneck "link" that drains some queue ahead of it.
Sometimes the order matters: for example, it matters a lot whether a "loss" comes before or after a "link". (Because it matters whether a packet is lost before or after it consumes the precious resource of the link capacity.) However, it doesn't matter whether a "delay" comes before or after a link. There's no way to tell whether a packet's propagation delay occurred closer to the sender-side or receiver-side of a queue and link. Therefore, it doesn't really matter whether you "prepend" or "append" the delay emulator to the "link" emulator.
Hope this is helpful!
Best regards,
Keith