diff --git a/_includes/components/widgets/feedland.njk b/_includes/components/widgets/feedland.njk index 74cf7c2..4bc44e4 100644 --- a/_includes/components/widgets/feedland.njk +++ b/_includes/components/widgets/feedland.njk @@ -189,7 +189,7 @@ - + {# Expanded items #}
@@ -238,8 +238,8 @@ function feedlandWidget() { sorted.sort((a, b) => (a.title || '').localeCompare(b.title || '')); } else { sorted.sort((a, b) => { - const da = a.lastFetchAt ? new Date(a.lastFetchAt) : new Date(0); - const db = b.lastFetchAt ? new Date(b.lastFetchAt) : new Date(0); + const da = new Date(a.lastItemAt || a.lastFetchAt || 0); + const db = new Date(b.lastItemAt || b.lastFetchAt || 0); return db - da; }); }