aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-22 21:30:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-22 21:30:53 +0530
commit1b494b0d26f1ff529aa6a6c1dd3768bcaa3aa0a6 (patch)
treede9449a8341a5268fb5efb65bb597295a816f667 /src
parent71cc0afe30c42f256db48f41c78fe2c67c28b2e8 (diff)
downloadnnn-1b494b0d26f1ff529aa6a6c1dd3768bcaa3aa0a6.tar.gz
Use library function for numeric sort
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 43782d2..1fb09f8 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1038,6 +1038,7 @@ static bool xdiraccess(const char *path)
return TRUE;
}
+#if 0
/*
* We assume none of the strings are NULL.
*
@@ -1091,6 +1092,7 @@ static int xstricmp(const char * const s1, const char * const s2)
return strcoll(s1, s2);
}
+#endif
/* Return the integer value of a char representing HEX */
static char xchartohex(char c)
@@ -1167,7 +1169,7 @@ static int entrycmp(const void *va, const void *vb)
return -1;
}
- return xstricmp(pa->name, pb->name);
+ return strverscmp(pa->name, pb->name);
}
/*