diff --git a/static/app.js b/static/app.js index 1763c19..add7b02 100644 --- a/static/app.js +++ b/static/app.js @@ -44,7 +44,8 @@ function renderTable() { // Body rows const tbody = document.createElement('tbody'); if (!data.guestNames) data.guestNames = {}; - data.dates.forEach((date, rowIdx) => { + // Show most recent date at the top + [...data.dates].slice().reverse().forEach((date, rowIdx) => { const tr = document.createElement('tr'); // Date cell const dateTd = document.createElement('td');