Generally UDP doesn’t garantee that packets will arrive in the same order they were sent.
But in one LAN if sender and receiver connected via just one switch and route never changes is it possible at all that order of UDP packets will be changed?
In particular can order of UDP packets change somewhere between network card and application? In network card drivers for example?
Can I say that if two computers connected via just on switch then in 100% of cases order of UDP packets will be unchanged?
They probably will arrive in order in that test setup, but relying on that fact is a really bad idea. Just add a sequence number to your packets or use TCP if appropiate.