UDP is a lightweight protocol that by design doesn’t handle things like packet sequencing. It does not guarantee that your packets will arrive in order (It does not even guarantee that your packets will arrive at all.) .
In my UDP application the received packets are order independent and keyed so that I can action them correctly.
My problem is that I can’t get started with how to implement UDP on the Yun so I would appreciate a complete sketch from someone.