Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Would ordering by date work in my case?

Started by Alexander Kim 9 years ago · 2 replies · 801 views
9 years ago

I have set default format for dates as d.m.Y - 11.07.2012

What if i will have 10 pages created within the same day, how ordering will work with this? 10 pages have the same creation date, how Grav can order them?

9 years ago

I think it would then order alphabetically by file folder name, maybe by defined slug. I double checked the docs and I don't see anything about multi-factor sorting. In the past I've done that manually in my Twig, working with the Collections object directly.

9 years ago

Maybe it's better to use unix date format, then reformat it with twig?

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago