массив такой:
Array
(
[0] => Array
(
[title] => Leather Belt
[image] => images/product.png
[price] => 24.9
[special_price] =>
)
[1] => Array
(
[title] => Fantastic Bag
[image] => images/product.png
[price] => 539
[special_price] =>
)
[2] => Array
(
[title] => Arnold Gloves
[image] => images/product.png
[price] => 99.9
[special_price] => 59.9
)
[3] => Array
(
[title] => Zues Hammer
[image] => images/product.png
[price] => 44.9
[special_price] =>
)
)
Сохранение ключей не обязательно наверно.
пробовал что-то такое:
$arr = $this->products();
asort($arr);
foreach ($arr as $key => $val) {
echo "$key = $val\n";
}
и
foreach ($arr as $key => $row)
{
$arr[$key] = $row['title'];
}
array_multisort($arr, SORT_ASC, $arr);
echo $arr;