I’m being really dense here. Say I have a table:
[lua]local event = {}
event[1] = {date = 20120214, location = “UK”, notes = “Other details”}
event[2] = {date = 20110901, location = “USA”, notes = “Other details”}
event[3] = {date = 20120416, location = “Sweden”, notes = “Other details”}[/lua]
How can I either:
a) sort the table by ascending ‘date’ so event[2] becomes event[1] etc etc
b) iterate through the table by ascending ‘date’ so I can display the data in order without sorting the underlying table. [import]uid: 93133 topic_id: 28439 reply_id: 328439[/import]