Skip to content
Snippets Groups Projects
Commit e36eb972 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Employee:change sorting

parent 5fb2e368
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("Attribute_lib");
import("system.vars");
import("system.result");
......@@ -41,6 +42,6 @@ var filter = vars.exists("$local.userfilter") && vars.get("$local.userfilter");
users = JditoFilterUtils.filterRecords(["UID", "TITLE", "ISACTIVE", "FIRSTNAME", "LASTNAME", "EMAIL_ADDRESS", "", "DESCRIPTION", "CONTACT_ID", "", "DEPARTMENT"], users, filter);
ArrayUtils.sort2d(users, 0, true, false); //sort by username
ArrayUtils.sort2d(users, 1, true, false); //sort by login (not username)
result.object(users);
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