filetree.c add back SORT_ALPHA_REVERSED

this is used for the playlist folder advance

Change-Id: I9da826d39c1a5880f6b97c33389afd601ce07834
This commit is contained in:
William Wilgus 2022-11-23 00:51:54 -05:00
parent 263cc13985
commit 0d355a9c47

View file

@ -258,7 +258,8 @@ static int compare(const void* p1, const void* p2)
case SORT_ALPHA: case SORT_ALPHA:
case SORT_ALPHA_REVERSED: 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);
} }
} }