I’ve been trying to sort articles by something other than the date created; e.g. menu order or published date. I’m hoping this will mean the administrator can move articles around and have more control over the order their news articles are shown in. However I can’t seem to get sortBy or orderBy to work ... everything else seems to in my code such as parent id but I’ve tried both of these and they don’t work. Is it the right parameter I’m using???
The most common error is using single quotes ’ rather than back ticks ` in the snippet parameter.
Quote from: pipedragon72 at Apr 07, 2009, 05:24 PM
I’ve been trying to sort articles by something other than the date created; e.g. menu order or published date. I’m hoping this will mean the administrator can move articles around and have more control over the order their news articles are shown in. However I can’t seem to get sortBy or orderBy to work ... everything else seems to in my code such as parent id but I’ve tried both of these and they don’t work. Is it the right parameter I’m using???
Are you using MySQL Version 5.0.51? It has a bug that would explain what you’re experiencing.