From 70a3c40cb3946c596eed789d03b423fc67542a4e Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Thu, 26 Mar 2015 21:13:50 +0100 Subject: [PATCH] baculum: Sorting directories and files in restore files browser --- gui/baculum/protected/Class/Miscellaneous.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/baculum/protected/Class/Miscellaneous.php b/gui/baculum/protected/Class/Miscellaneous.php index ad0b61021e..f44e0b7930 100644 --- a/gui/baculum/protected/Class/Miscellaneous.php +++ b/gui/baculum/protected/Class/Miscellaneous.php @@ -1,5 +1,10 @@ $match['pathid'], 'filenameid' => $match['filenameid'], 'fileid' => $match['fileid'], 'jobid' => $match['jobid'], 'lstat' => $match['lstat'], 'name' => $match['name'], 'type' => 'file'); } } + usort($elements, 'sortListByName'); return $elements; } -- 2.39.5