Fix reverse-sort bug

This commit is contained in:
Bobbi Webber-Manners 2020-02-06 00:05:07 -05:00
parent df8b246940
commit 14c8c83a88

View File

@ -499,7 +499,7 @@ int compare(const void *a, const void *b) {
int rc; int rc;
rc = strncmp(((struct fileent*)a)->name, rc = strncmp(((struct fileent*)a)->name,
((struct fileent*)b)->name, 15); ((struct fileent*)b)->name, 15);
return (doreverse ? !rc : rc); return (doreverse ? -rc : rc);
} }
/* /*