Sort apps and files by display name

This commit is contained in:
Willy-JL
2023-03-14 02:56:26 +00:00
parent f14272d9e3
commit 2a51958d77
2 changed files with 4 additions and 2 deletions
@@ -93,7 +93,9 @@ static int ArchiveFile_t_cmp(const ArchiveFile_t* a, const ArchiveFile_t* b) {
}
}
return furi_string_cmpi(a->path, b->path);
return furi_string_cmpi(
furi_string_empty(a->custom_name) ? a->path : a->custom_name,
furi_string_empty(b->custom_name) ? b->path : b->custom_name);
}
#define M_OPL_ArchiveFile_t() \
@@ -100,7 +100,7 @@ static int BrowserItem_t_cmp(const BrowserItem_t* a, const BrowserItem_t* b) {
}
}
return furi_string_cmpi(a->path, b->path);
return furi_string_cmpi(a->display_name, b->display_name);
}
#define M_OPL_BrowserItem_t() \