function onProcessOrderMassActionexportCsv(&$elements,&$action,$k){
$formatExport = $action['formatExport']['format'];
$path = $action['formatExport']['path'];
if(empty($path)){
ob_get_clean();
}
$app = JFactory::getApplication();
if($app->isAdmin() || (!$app->isAdmin() && !empty($path))){
$params = new stdClass();
$params->action['order']['order_id'] = 'order_id';
unset($action['formatExport']);
$params = $this->massaction->_displayResults('order',$elements,$action,$k);
$params->formatExport = $formatExport;
// Added
$path = str_replace('.csv','-'.date('y-m-d H:m:s').'.csv',$path);
// EO Added
$params->path = $path;
$params = $this->massaction->sortResult($params->table,$params);
$this->massaction->_exportCSV($params);
}
}