I have many departments and sub-departments and finally lost the overview.
So I add the display order by the departmens list.
If you now order by the display order you will see the same order as your customers see.
Thought might be intresting to share!
Open: Code:
\modules\core\admin_departments.php
Find: Code:
$fields[0]["name"] = "title";
$fields[0]["title"] = $_SWIFT["language"]["deptitle"];
$fields[0]["width"] = "";
$fields[1]["name"] = "departmenttype";
$fields[1]["title"] = $_SWIFT["language"]["deptype"];
$fields[1]["width"] = "100";
$fields[1]["align"] = "center";
$fields[2]["name"] = "departmentmodule";
$fields[2]["title"] = $_SWIFT["language"]["depmodule"];
$fields[2]["width"] = "120";
$fields[2]["align"] = "center";
$fields[3]["type"] = "custom";
$fields[3]["name"] = "options";
$fields[3]["title"] = $_SWIFT["language"]["options"];
$fields[3]["width"] = "150";
$fields[3]["align"] = "center";
Replace with: Code:
$fields[0]["name"] = "title";
$fields[0]["title"] = $_SWIFT["language"]["deptitle"];
$fields[0]["width"] = "";
$fields[1]["name"] = "displayorder";
$fields[1]["title"] = $_SWIFT["language"]["displayorder"];
$fields[1]["width"] = "120";
$fields[1]["align"] = "center";
$fields[2]["name"] = "departmenttype";
$fields[2]["title"] = $_SWIFT["language"]["deptype"];
$fields[2]["width"] = "100";
$fields[2]["align"] = "center";
$fields[3]["name"] = "departmentmodule";
$fields[3]["title"] = $_SWIFT["language"]["depmodule"];
$fields[3]["width"] = "120";
$fields[3]["align"] = "center";
$fields[4]["type"] = "custom";
$fields[4]["name"] = "options";
$fields[4]["title"] = $_SWIFT["language"]["options"];
$fields[4]["width"] = "150";
$fields[4]["align"] = "center";