As initially shown in this topic, the current Expressive Output Window beta is showing arrays via print() in a non-numerical order.
Repro
Activate Expressive Output Window beta
Run this script:
local arr = {}
for i = 1, 10, 1 do
table.insert(arr, "value" .. i*5-1)
end
print("Expressive Window:")
print(arr)
print("For Ipairs:")
for i, v in ipairs(arr) do
print(i, v)
end
It will show the results like:
The first block is showing the array in a non-numerical order.
The last one should be the correct way to print arrays in Expressive Output Window.
Some changes have been made (and again nobody has been warned, as usual ), however, instead of the array is being sorted by the index number, it is being sorted alphabetically.
This is wrong.
Also, the Id number must be appearing before the value, and currently, no number is shown.
Not showing the array index number complicates a lot of debugging where I must make a comparison between two tables, where for example, the first table has an indexed list and the second table refers to the Id of the first.
Without showing the array Id, I cannot check the relationship between the two tables.
@MisterRedTurtle
I noticed a small evolution since Studio 452: now, array Id numbers are showing up. Congratulations!
Now, to be perfect, just show the array in numerical order: