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

Blog posts sort order wrong for multiple posts on same day #6461

Closed
4 tasks done
miketheman opened this issue Dec 7, 2023 · 4 comments
Closed
4 tasks done

Blog posts sort order wrong for multiple posts on same day #6461

miketheman opened this issue Dec 7, 2023 · 4 comments
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@miketheman
Copy link

Context

Thanks for the really awesome tool!

I recently noticed that when publishing multiple posts on a single date, there's no real way to "manually" sort them in to a desired order.

Bug description

When supplying a date metadata, the full value is not used to control the sort order.

---
date: 2023-06-06T00:00:01
---
vs
---
date: 2023-06-06T00:00:02
---

Related links

Reproduction

9.5.0-blog-post-sort-order-wrong.zip

Steps to reproduce

  1. Load the attached repo
  2. Run mkdocs serve
  3. Observe the incorrect sort order of Mid 1, Mid 2, Mid 3 - where it should be reversed.
    This is seen in both the main text and the TOC right sidebar.

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting and the excellent reproduction. Fixed in 5b70a0c. We accidentally dropped the time component of datetime, because we only did the instance check for date, and datetime is also a date.

@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open labels Dec 7, 2023
@miketheman
Copy link
Author

Excellent, thanks so much for the speedy fix!

P.S. I think you meant "lose" not "loose" in the changes.

@squidfunk
Copy link
Owner

Thanks, corrected.

@squidfunk
Copy link
Owner

Released as part of 9.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants