From f87aea52118c8e4a2e6fe76a48bbbeb878956ea7 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 25 Mar 2015 17:42:45 +0000 Subject: [PATCH] Fax Server: Sort Sent faxes descending. --- app/fax/fax_box.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/fax/fax_box.php b/app/fax/fax_box.php index daa6fec60d..ef1a33f033 100644 --- a/app/fax/fax_box.php +++ b/app/fax/fax_box.php @@ -357,7 +357,7 @@ else { $row_style["1"] = "row_style1"; if ($handle = opendir($dir_fax_sent)) { - //build an array of the files in the inbox + //build an array of the files in the sent box $i = 0; $files = array(); while (false !== ($file = readdir($handle))) { @@ -377,7 +377,7 @@ else { } closedir($handle); //order the index array - sort($file_name_array,SORT_STRING); + rsort($file_name_array,SORT_STRING); //loop through the file array foreach($file_name_array as $i) {