What is the correct behavior for range .Pages.ByWeight.ByDate.ByTitle?

Before I go and create a sample repo and all, I’ve got a question about what is the expected behavior with what I’m doing.

I’ve got {{ range .Pages.ByWeight.ByDate.ByTitle }} but instead of ordering by weight, then date, then title, Hugo is ordering purely by title.

Is this expected or should I be creating a reproducible test case and looking at why it’s not doing what I expect?

Yes, this is expected; last one wins. You can achieve SQL-like multi-column ordering through grouping.

1 Like

Thank you, that’s what I’ve ended up doing, but I wanted to know if it was a bug or expected.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.