mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-15 20:01:54 -07:00
Sort apps and files by display name
This commit is contained in:
@@ -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() \
|
||||
|
||||
Reference in New Issue
Block a user