Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Would ordering by date work in my case?

Started by Alexander Kim 8 years ago · 2 replies · 572 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 jean-louis67, 3 days ago
2 80 2 days ago
General · by Andy Miller, 6 days ago
0 144 6 days ago
General · by Veehem, 1 week ago
0 144 1 week ago
General · by milkboy, 1 week ago
0 138 1 week ago
General · by ian russell, 2 weeks ago
2 226 2 weeks ago