замените в файле ../catalog/controller/module/categorywall.php
foreach ($categories as $category) {
if ($category['image']) {
$image = $this->model_tool_image->resize($category['image'], 150, 150);
} else {
$image = $this->model_tool_image->resize('placeholder.png', 150, 150);
}
$data['categories'][] = array(
'category_id' => $category['category_id'],
'name' => $category['name'],
'thumb' => $image,
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] .'_'. $category['category_id'])
);
}
на код
foreach ($categories as $category) {
if ($category['image']) {
$image = $this->model_tool_image->resize($category['image'], 150, 150);
} else {
$image = $this->model_tool_image->resize('placeholder.png', 150, 150);
}
$data_categories[] = array(
'category_id' => $category['category_id'],
'name' => $category['name'],
'sort' => $category['sort_order'],
'thumb' => $image,
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] .'_'. $category['category_id'])
);
}
$sort = array_map(
function($n)
{
return $n['sort'];//Выбираем поле, по которому будем сортировать массив
},
$data_categories
);
array_multisort($sort, SORT_ASC, $data_categories);
$data['categories'] = $data_categories;