Skip to content

Commit

Permalink
Sort exported loot entries by award time
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargul committed May 31, 2024
1 parent 7129192 commit 77859e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Classes/Exporter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ function Exporter:getLootEntries(raw)
end)();
end

-- Sort the entries by award time
table.sort(Entries, function (a, b)
if (not a.timestamp or not b.timestamp) then
return false;
end

return a.timestamp < b.timestamp;
end);

return Entries;
end

Expand Down

0 comments on commit 77859e2

Please sign in to comment.