From 0d355a9c479457ed02c0df8b85d938534ec77c54 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 23 Nov 2022 00:51:54 -0500 Subject: [PATCH] filetree.c add back SORT_ALPHA_REVERSED this is used for the playlist folder advance Change-Id: I9da826d39c1a5880f6b97c33389afd601ce07834 --- apps/filetree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/filetree.c b/apps/filetree.c index 5c97faa9d8..107163add5 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -258,7 +258,8 @@ static int compare(const void* p1, const void* p2) case SORT_ALPHA: case SORT_ALPHA_REVERSED: { - return cmp_data._compar(e1->name, e2->name, MAX_PATH); + return cmp_data._compar(e1->name, e2->name, MAX_PATH) * + (criteria == SORT_ALPHA_REVERSED ? -1 : 1); } }