In our multiple-department osTicket deployment, in order to facilitate assignment of tickets to agents, it is helpful to immediately know which department an agent belongs to without having to view the agent's profile. Therefore, we decided to prepend the department name to each agent's name throughout the system.With this as a guide, we have done the following:1) Modified the getName function in the Staff class in include/class.staff.php function getName() { return new AgentsName(array('dept' => $this->dept, 'first' => $this->ht, 'last' => $this->ht)); }2) Modifed the nsort static function in the Staff class in include/class.staff.php static function nsort(QuerySet $qs, $path='', $format=null) { global $cfg; $format = $format ?: $cfg->getAgentNameFormat(); switch ($format) { case 'last': case 'lastfirst': case 'legal': $qs->order_by("{$path}lastname", "{$path}firstname"); break; case 'deptfull': $qs->order_by("{$path}dept", "{$path}firstname", "{$path}lastname"); break; default: $qs->order_by("${path}firstname", "${path}lastname"); } return $qs; }3) Add one entry to the static $formats array in the PersonsName class of include/class.user.php (line 651) static $formats = array( 'first' => array( /*@trans*/ "First", 'getFirst'), 'last' => array( /*@trans*/ "Last", 'getLast'), 'full' => array( /*@trans*/ "First Last", 'getFull'), 'legal' => array( /*@trans*/ "First M. Last", 'getLegal'), 'lastfirst' => array( /*@trans*/ "Last, First", 'getLastFirst'), 'formal' => array( /*@trans*/ "Mr. Last", 'getFormal'), 'short' => array( /*@trans*/ "First L.", 'getShort'), 'shortformal' => array(/*@trans*/ "F. Last", 'getShortFormal'), 'complete' => array( /*@trans*/ "Mr. First M. Last Sr.", 'getComplete'), 'deptfull' => array( /*@trans*/ "Dept - First Last", 'getDeptFull'), 'original' => array( /*@trans*/ '-- As Entered --', 'getOriginal'), );to be continued..