Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-03-26 10:17:46

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,426
Website GitHub Mastodon

Re: Article sort by category confusion

etc wrote #289443:

Why not to replace > by >= AND ID != current_id?

Because you would eventually end in an infinite loop between two articles sharing an identical sort criterion.

Offline

#17 2015-03-26 10:32:06

etc
Developer
Registered: 2010-11-11
Posts: 5,690
Website GitHub

Re: Article sort by category confusion

wet wrote #289445:

Because you would eventually end in an infinite loop between two articles sharing an identical sort criterion.

Heh! could be a feature 8-) Then > OR (= AND ID>current_id), plus ORDER BY sort, ID?

Edit: then link_to_next/prev could produce the same result. ID sort type and direction should be the same as for $sortby, I guess.

Last edited by etc (2015-03-26 18:22:51)

Offline

Board footer

Powered by FluxBB