From a123ce9a381dde6bd6139c86f532c3195796a46a Mon Sep 17 00:00:00 2001 From: jbohack Date: Tue, 3 Jan 2023 17:05:01 -0500 Subject: [PATCH] list files in alphabetical order --- applications/main/archive/helpers/archive_browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/main/archive/helpers/archive_browser.c b/applications/main/archive/helpers/archive_browser.c index 988124e0b..1cf7be854 100644 --- a/applications/main/archive/helpers/archive_browser.c +++ b/applications/main/archive/helpers/archive_browser.c @@ -64,7 +64,7 @@ static void archive_add_file_item(browser, is_folder, furi_string_get_cstr(item_path)); } else { with_view_model( - browser->view, ArchiveBrowserViewModel * model, { model->list_loading = false; }, true); + browser->view, ArchiveBrowserViewModel * model, { files_array_sort(model->files); model->list_loading = false; }, true); } } @@ -527,4 +527,4 @@ void archive_refresh_dir(ArchiveBrowserView* browser) { with_view_model( browser->view, ArchiveBrowserViewModel * model, { idx_temp = model->item_idx; }, false); file_browser_worker_folder_refresh(browser->worker, idx_temp); -} \ No newline at end of file +}