Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Would ordering by date work in my case?

Started by Alexander Kim 8 years ago · 2 replies · 643 views
8 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?

8 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.

8 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago