Weird chronological ordering

I’m seeing a weird issue when using specifying chronological ordering. For reference here is my routes.yaml file:

routes:
  /new/:
    controller: channel
    template: new

collections:
  /:
    permalink: /{slug}/
    template: index
    order: asc

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

In summary, the home page (/) should show the posts in the order they were created, the /new/ endpoint should show the newest ones first.

On the home page - the ordering is wrong. The “what are loops?” article was published a day after “What is an if statement?” article but for some reason comes before.

On the new page - the order is correct. “what are loops?” was the last article to be published.

image

@omisnomis have you tried specifying which field should be asc? eg created_at asc?

Docs for the order parameter are here:

@Kevin - if I could roll my eyes at myself, I would. Oh wait… :roll_eyes: :roll_eyes::roll_eyes: I can!

Thank you for humouring my idiocy!

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