How do you sort the bestsellers alphabetically. Cant alter the query to 'order_by' as it is already doing that to get the top 10.
Is there a way with the sort() function? or some other simple solution?
How do you sort the bestsellers alphabetically. Cant alter the query to 'order_by' as it is already doing that to get the top 10.
Is there a way with the sort() function? or some other simple solution?
Change:
$bestsellers_list[$rows]['name'] = $best_sellers->fields['products_id'];
$bestsellers_list[$rows]['id'] = $best_sellers->fields['products_description'];
$best_sellers->MoveNext();
}
$title_link = false;
to:
$bestsellers_list[$rows]['name'] = $best_sellers->fields['products_description'];
$bestsellers_list[$rows]['id'] = $best_sellers->fields['products_id'];
$best_sellers->MoveNext();
}
$title_link = false;
sort($bestsellers_list);