Skip to content
Snippets Groups Projects
Commit ce96c013 authored by Vinciane's avatar Vinciane
Browse files

FEAT #9439 Correction alphabetic sort

parent 811627f7
No related branches found
No related tags found
No related merge requests found
......@@ -34,16 +34,19 @@ class FirstLevelController
public static function getTreeFunction()
{
$firstLevels = FirstLevelModel::get(['where' => ['enabled = ?'], 'data' => ['Y'], 'order_by' => ['doctypes_first_level_id asc']]);
$firstLevels = FirstLevelModel::get([
'where' => ['enabled = ?'],
'data' => ['Y'],
'orderBy' => ['doctypes_first_level_label asc']]);
$secondLevels = SecondLevelModel::get([
'where' => ['enabled = ?'],
'data' => ['Y'],
'order_by' => ['doctypes_second_level_label asc']
'orderBy' => ['doctypes_second_level_label asc']
]);
$docTypes = DoctypeModel::get([
'where' => ['enabled = ?'],
'data' => ['Y'],
'order_by' => ['description asc']
'orderBy' => ['description asc']
]);
$structure = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment