Rolling views: show most recent week/month first in table

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-23 16:15:02 +00:00
parent 34b17b495e
commit 84f5d38b10
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ export default function Rolling12Months() {
</tr>
</thead>
<tbody>
{rows.map((r, i) => {
{[...rows].reverse().map((r, i) => {
const pctB = r.budget != null && r.budget > 0 ? (r.wages / r.budget) * 100 : null
const pctS = r.sales > 0 ? (r.wages / r.sales) * 100 : null
const vari = r.budget != null ? r.wages - r.budget : null