fix: add secondary sort by date_created so articles without published_at show up in listings

This commit is contained in:
achmad
2026-05-31 17:01:25 +07:00
parent 6bff34cbc7
commit 95aac628e1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export default function LoadMoreButton({ categorySlug, initialCount, hasMore: in
const params = new URLSearchParams({
'filter[status][_eq]': 'published',
'filter[category][slug][_eq]': categorySlug,
sort: '-published_at',
sort: '-published_at,-date_created',
limit: '12',
offset: String(offset),
fields: