Bash: iterate over bash array in the order the elements were declared.
When I iterate over a map (associative array), the order in which the elements in the array are iterated depend on the type of keys.
If my keys are 1, then 'b' (defined in that order), I get them back in the same order: 1, then 'b'.
If my keys are 1, then 2 (defined in that order), I get them in reverse order: 2, then 1.
This is without changing the for loop, nor changing the order in which the elements are declared, simply changing the keys.