diff options
Diffstat (limited to 'Src/glob.c')
-rw-r--r-- | Src/glob.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Src/glob.c b/Src/glob.c index 394e91d01..afd362c08 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -855,10 +855,7 @@ gmatchcmp(Gmatch a, Gmatch b) for (i = gf_nsorts, s = gf_sortlist; i; i--, s++) { switch (*s & ~GS_DESC) { case GS_NAME: - if (gf_numsort) - r = nstrpcmp(&b->name, &a->name); - else - r = strpcmp(&b->name, &a->name); + r = zstrcmp(b->name, a->name, gf_numsort ? SORTIT_NUMERICALLY : 0); break; case GS_DEPTH: { |