mirror of
https://github.com/bobbimanners/GNO-Extras.git
synced 2025-01-02 13:30:28 +00:00
Fix reverse-sort bug
This commit is contained in:
parent
df8b246940
commit
14c8c83a88
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user