You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.first-article with a date field set to 2024-01-01.
2.second-article with a date field set to 2025-01-01.
I want to sort these articles using .order('date', 'DESC').
Despite specifying this order, the sorting doesn’t respect the date field and seems to rely on the stem instead.
Describe the bug
While using queryCollectionItemSurroundings, it seems that the order method has no effect on the sorting of results. The sorting always appears to be based on the stem field, regardless of the criteria defined via order.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
1.first-article
with adate
field set to2024-01-01
.2.second-article
with adate
field set to2025-01-01
..order('date', 'DESC')
.date
field and seems to rely on thestem
instead.Describe the bug
While using
queryCollectionItemSurroundings
, it seems that theorder
method has no effect on the sorting of results. The sorting always appears to be based on thestem
field, regardless of the criteria defined viaorder
.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: