Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] The order method doesn’t seem to work with surround #2973

Closed
maximepvrt opened this issue Jan 14, 2025 · 0 comments · Fixed by #2974
Closed

[v3] The order method doesn’t seem to work with surround #2973

maximepvrt opened this issue Jan 14, 2025 · 0 comments · Fixed by #2974

Comments

@maximepvrt
Copy link
Contributor

Environment

Reproduction

  1. I have two articles in my collection:
    • 1.first-article with a date field set to 2024-01-01.
    • 2.second-article with a date field set to 2025-01-01.
  2. I want to sort these articles using .order('date', 'DESC').
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant