I’m trying to sort a table that has tables inside it. The table structure looks like this:
[lua]T = {}
T[1] = {}
T[1].counter = 7, T[1].ID = 14, T[1].price = 200
T[2] = {}
T[2].counter = 2, T[2].ID = 9, T[2].price = 300
T[3] = {}
T[3].counter = 3, T[3].ID = 30, T[3].price = 19[/lua]
How can I sort T[1] through T[3] in order of the smallest ID, for instance? I’m kind of a novice at the nested thing.
[import]uid: 96383 topic_id: 29691 reply_id: 329691[/import]