A map parameter iterates its entries in the order the cell wrote them

All 3 scenarios hold

Keys and values are read off the same map, entry by entry.

expected outcome broken scenario
ScenarioMap inputKey order?Value order?
Written ascending
a
1
b
2
c
3
  • a
  • b
  • c
  • 1
  • 2
  • 3
Keys written unsorted
c
1
a
2
b
3
  • c
  • a
  • b
  • 1
  • 2
  • 3
Values written descending
a
3
b
2
c
1
  • a
  • b
  • c
  • 3
  • 2
  • 1