Login Form

#421 – Sort order is

Posted in ‘BF Auction’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 09 October 2014 01:15 AEDT
Joomla! version: 2.5.7


When I try to order items in the item list in the admin back-end, some "ordering" numbers are duplicated for two distinct items, it seems categories are ordered in parallel sequence. However, because I have all items ending on the same date, I end up with my items ordered alternating in categories on the user side. I see 2 solution for this:

* Either make the ordering value unique, regardless of the category.
* Either sort by categories "ordering" order first, then item "ordering" order.

Thanks for the usual quick reply, it is appreciated!
Saturday, 18 October 2014 14:40 AEDT 10'
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Sorry for the delay.

For the back end items list, you can see the ordering in /administrator/components/com_bfauction_plus/models/items.php

//around line 224
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering');
$orderDirn = $this->state->get('list.direction');
if ($orderCol == 'a.ordering' || $orderCol == 'category_name') {
$orderCol = 'c.title '.$orderDirn.', a.ordering';
$query->order($db->escape($orderCol.' '.$orderDirn));

I wonder if there is a tiny bug here. I wonder if line 229/230 should be changed to:
}else if($orderCol){

Perhaps you can try this on your site and see if this solves the problem. Let me know as if it works I will include the fix in the next version release.


Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top