Hello, i am making data saving system and before replicating the data, i am storing them into a table to prevent unnecessary replications.
So here is my table:
{
values = {},
collections = {},
folders = {},
}
I want to parent values first, then collections and at the end i want to parent folders BUT when i am printing the order to the output i always get:
folders table: 0xf7c6601989c35ea5
collections table: 0xb3067eb76aa08325
values table: 0x51a475714b125865
That's the exact opposite from what i need. Here is what i need:
values table: 0x51a475714b125865
collections table: 0xb3067eb76aa08325
folders table: 0xf7c6601989c35ea5
I was searching and found something like table.sort even tho i don't know how to use it in this case.
I also had an idea of doing:
local index = #self
for 1, #self in pairs(self) do
-- do stuff
index = index - 1
end
Even tho i would like a better way to do it if it's possible.
Thanks, kirda

2 comments
well answer to your first problem: do print(game:GetService("HttpService"):JSONEncode(values)) and it will print. a null means it's an instance inside of the table.
nono there is not problem with the table, all the values inside are tables, there is no instances, my problem is that it does not sort it by the order i need it to.