Does anyone have a suggestion on how to solve this sorting problem?

i have a table of data… i want to sort through sent and recieved by the timestamp.

data example.

messages = {
  sent = {
    messageId = {
      message = "",
      timeStamp = 111,
  received = {},

would i use two for loops for this or does anyone know a better way?

my thinking is to go through sent and received and add them to a new table sorted.

just going to use an array and use table.sort instead.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.