diff --git a/web/src/app/app/settings/usage/UsageSettings.tsx b/web/src/app/app/settings/usage/UsageSettings.tsx index fd3a532c66..9fdff295a9 100644 --- a/web/src/app/app/settings/usage/UsageSettings.tsx +++ b/web/src/app/app/settings/usage/UsageSettings.tsx @@ -48,6 +48,10 @@ function WindowCostSection({ windowCostCents, rows }: WindowCostSectionProps) { 0 ); const hasCache = rows.some((row) => row.cache_read_tokens > 0); + const sortedRows = useMemo( + () => [...rows].sort((a, b) => b.cost_cents - a.cost_cents), + [rows] + ); return (
@@ -68,7 +72,7 @@ function WindowCostSection({ windowCostCents, rows }: WindowCostSectionProps) { /> ) : ( - {rows.map((row, index) => ( + {sortedRows.map((row, index) => (
{index > 0 && }