Ok I have figured it out.At around line 163 you will see an associative array called $sortOptions.Add to the array 'duedate'=>'duedate'it should look like this$sortOptions=array('date'=>'effective_date','duedate'=>'duedate','ID'=>'ticket.`number`*1', 'pri'=>'pri.priority_urgency','name'=>'user.name','subj'=>'cdata.subject', 'status'=>'status.name','assignee'=>'assigned','staff'=>'staff', 'dept'=>'dept.dept_name');you can use any text for the key. so it could be 'anything here'=>'duedate'whatever you use for the key should be used in the url i listed earlier so it would be href="tickets.php?sort=put your key here&order=let me know if it works for you