diff options
Diffstat (limited to 'Src/sort.c')
-rw-r--r-- | Src/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/sort.c b/Src/sort.c index 7f539a248..3d00bb576 100644 --- a/Src/sort.c +++ b/Src/sort.c @@ -134,9 +134,9 @@ eltpcmp(const void *a, const void *b) while (idigit(*as) && idigit(*bs)) as++, bs++; if (idigit(*as) && !idigit(*bs)) - return 1; + return sortdir; if (idigit(*bs) && !idigit(*as)) - return -1; + return -sortdir; } } } |