Fax Server: Sort Sent faxes descending.
This commit is contained in:
parent
ed4ee38b4c
commit
f87aea5211
|
|
@ -357,7 +357,7 @@ else {
|
||||||
$row_style["1"] = "row_style1";
|
$row_style["1"] = "row_style1";
|
||||||
|
|
||||||
if ($handle = opendir($dir_fax_sent)) {
|
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;
|
$i = 0;
|
||||||
$files = array();
|
$files = array();
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
|
|
@ -377,7 +377,7 @@ else {
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
//order the index array
|
//order the index array
|
||||||
sort($file_name_array,SORT_STRING);
|
rsort($file_name_array,SORT_STRING);
|
||||||
|
|
||||||
//loop through the file array
|
//loop through the file array
|
||||||
foreach($file_name_array as $i) {
|
foreach($file_name_array as $i) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue