diff --git a/components/WeeklyGrid.tsx b/components/WeeklyGrid.tsx index 724a085..4479964 100644 --- a/components/WeeklyGrid.tsx +++ b/components/WeeklyGrid.tsx @@ -146,8 +146,8 @@ const WeeklyGrid: React.FC = ({ data }) => { // Export to Excel const handleExportExcel = () => { - // Prepare data for export - const exportData = filteredRows.map(row => { + // Prepare data for export - use sortedRows to match on-screen order + const exportData = sortedRows.map(row => { const rowData: { [key: string]: string | number } = { SKU: row.sku, ASIN: row.asin,