Hi,

Upon finding out about this "quirk" in the awk language, if you are now 
horrified that you
have loads of code that relies on this order, there is a temporary solution. 
Check out the
WHINY_USERS environment variable:

https://linux.die.net/man/1/mawk

In mawk and (apparently) undocumented in gawk. It ensures arrays are sorted 
when iterating
through in this way.

Hope this helps,

Karsten

Reply via email to