It's not difficult at all
In include/staff/ticket_view.inc.php on line 11, we have the $status_arr variable which holds the array that populates the select. What we want to do is sort the array before it gets to the foreach().
function showOptionsDrop($selected){ // shows all options but selected...
$string = '';
$status_arr = array("Reviewed","Responded","Quotation Sent","PO Requested","PO Recieved","Awaiting Payment","Payment Recieved","In Transit", "Working", "Finished", "In Return Transit");
natsort($status_arr);
foreach($status_arr as $k=>$v){
if($selected == $k) // don't double display the selected option
$string .= '<option selected value="'.$k.'">'.$v.'</option>'."\n";
else
$string .= '<option value="'.$k.'">'.$v.'</option>'."\n";
}
return $string;
}
the function natsort() sorts the array items in their 'natural' order, which, in this case, would be alphabetically ascending.
As I mentioned in the comments, this array could also be moved to a database table and the sort could then be performed in the query that populates the select.