Is it possible to sort the internal table in ascending order or get in a loop?
{ --[[0000000002844C80]]
4 = { --[[0000000002844210]]
3 = { --[[00000000028442C0]]
hash: [box_preview] = box@(-82, 700, 0),
},
2 = { --[[0000000002844DF0]]
hash: [box_preview] = box@(-82, 700, 0),
},
4 = { --[[0000000002844DF0]]
hash: [box_preview] = box@(-82, 700, 0),
}
},
6 = { --[[0000000002842A20]]
1 = { --[[0000000002844850]]
hash: [box_preview_op] = box@(718, 700, 0),
}
}
}
for user_id, nodes in pairs(preview_nodes) do
for pos, node in pairs(nodes) do
end
end
i want get elemet with index 2,3,4 etc ascending
but i have 3,2,4 etc
I apologize in advance if my question is very simple. Well, I just canât get used to lua