Skip to content

Commit

Permalink
issue: Assign To Sort Alphabetically
Browse files Browse the repository at this point in the history
This addresses a small issue where Agents were not sorted alphabetically
when Assigning/Re-Assigning a Ticket or Task. This is especially frustrating
when you have an enormous list of Agents. This adds `nsort()` to
`getDeptAgents()` so we can sort the Agents by the system's Name Format.
  • Loading branch information
JediKev committed Dec 14, 2020
1 parent fe1d1f8 commit 77c7a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/class.staff.php
Expand Up @@ -1012,6 +1012,8 @@ function getDeptAgents($criteria=array()) {
));
}

$agents = self::nsort($agents);

if (isset($criteria['namesOnly'])) {
$clean = array();
foreach ($agents as $a) {
Expand Down

0 comments on commit 77c7a12

Please sign in to comment.