I have approached the a problem to list a set of items, which have components, which in turn have properties in awk.
I have tried to approach the problem in two ways.
1) Define an array list[item-number,component-number][properties].
2) Define an array list[item-number][component-number][properties].
This was in many ways interesting, as I noticed (2) maintain the order of insertion, while (1) does not. I know arrays are associative in awk and it could very well be a coincidence this happened. However, as the order of insertion is important in my case (and also, I want to learn more about awk), I would like to know if this is what happening and why.
Any ideas? BR Patrik