This commit is contained in:
parent
1cbdca87df
commit
0923a9107c
|
@ -187,9 +187,18 @@ class NavController extends Controller
|
|||
|
||||
usort($items, function ($a, $b) use ($categoriesLabels) {
|
||||
foreach ($categoriesLabels as $key => $value) {
|
||||
if ($a['categoryId'] === 'other') {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($b['categoryId'] === 'other') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ($a['categoryId'] === $key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($b['categoryId'] === $key) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue