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 · 598 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 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago