mirror of
https://github.com/bobbimanners/GNO-Extras.git
synced 2024-12-22 17:30:13 +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;
|
||||
rc = strncmp(((struct fileent*)a)->name,
|
||||
((struct fileent*)b)->name, 15);
|
||||
return (doreverse ? !rc : rc);
|
||||
return (doreverse ? -rc : rc);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user