Ok taken me a while to decipher this. I think the problem is simply that we chose a different terminology for previous and next.
In my thinking, next is up the list and previous is down the list.
I don’t know if there is a universal way to approaching this, but no matter what, changing how this works now will have dramatic effects on sites that are built expecting the current behavior. I suggest that if it feels ‘inverted’ to you, simply change the dir: asc to dir: desc or vice versa.
If you feel the nextSibling and prevSibling are inverted, just flip them in your code.
So how it works now:
Assuming you have the pages:
Project A
Project B
Project C
You are on Project A, the previous page is Project B.
If you are on Project B, the previous page is Project C and next is Project A
Just visualize the list vertically and associate next with up and prev with down and it will make sense
I got tricked as well now by the terminology I expected, while testing.
Thank you for the explanations !
I never thought it that way. I’ll know that I should inverse next and prev.
May I suggest to precise it in the documentation ?
This way is perfectly clear :
Assuming you have the pages:
Project A
Project B
Project C
You are on Project A, the previous page is Project B.
If you are on Project B, the previous page is Project C and next is Project A