Page 1 of 1

Wrong category ordering by date !?

Posted: 15 May 2015, 20:30
by rbuelund
If i sort my 5 categories by date descendig - i get this order in categories view (month-year):

8-2014, 4-2015, 4-2015, 3-2015, 3-2015

This is wrong - it should be:

4-2015, 4-2015, 3-2015, 3-2015, 8-2014

This must be a bug in the PhocaGalleryOrdering::renderOrderingFront ??

Re: Wrong category ordering by date !?

Posted: 17 May 2015, 14:26
by Jan
Hi, Phoca Gallery does not order the items, they are ordered in your database, Phoca Gallery only ask: date ascending or date descending - so try to look at your database settings.

So Phoca Gallery asks your database to order date - "order by date desc" or "order by date asc" - the ordering then is set by your settings in database.

Jan

Re: Wrong category ordering by date !?

Posted: 17 May 2015, 19:11
by rbuelund
Ehmm.. sorry but which settings would that be - it works correct al other places in Joomla ??

Re: Wrong category ordering by date !?

Posted: 18 May 2015, 15:10
by rbuelund
Ahaa.. now I know what is going wrong. If you have a parent category with no pictures and a date of.. say 08-2015, and then a sub-category of that category with the date of 08-2014, then the date of the parent category is deciding the order in relation to other parent categories - not the actual date of the sub-category. Maybe that makes sense in the big picture - but would be better that the sort order was decided at the individual category level, and not related to the parent - as the parents might have been created a long time ago ....!?

Re: Wrong category ordering by date !?

Posted: 21 May 2015, 11:06
by Jan
Hi, the problem is, the tree has always the priority - then other ordering methods are done. It is not possible to break the tree :-(

Jan