I created a table, which lists 5 key value pairs. When I run my program the values are not in the same order they are listed when I set the variable!
For example:
local table = { [“A”]=2, [“B”]=5, [“C”]=8, [“D”]=11, [“E”]=12}
for k, v in pairs( table ) do
print(v .. " " .. k)
end
Displays:
2 A
8 C
5 B
12 E
11 D
Is this standard behavior?
[import]uid: 98652 topic_id: 17365 reply_id: 317365[/import]