]> Sergey Matveev's repositories - nnn.git/commitdiff
Revert "Use library function for numeric sort"
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 22 Jan 2019 17:10:43 +0000 (22:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 22 Jan 2019 17:10:43 +0000 (22:40 +0530)
This reverts commit 1b494b0d26f1ff529aa6a6c1dd3768bcaa3aa0a6.

src/nnn.c

index 1fb09f85627866fe2e6701f933947bafa361eef5..43782d28794079a23e81353d1badeca487d86a56 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1038,7 +1038,6 @@ static bool xdiraccess(const char *path)
        return TRUE;
 }
 
-#if 0
 /*
  * We assume none of the strings are NULL.
  *
@@ -1092,7 +1091,6 @@ 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)
@@ -1169,7 +1167,7 @@ static int entrycmp(const void *va, const void *vb)
                        return -1;
        }
 
-       return strverscmp(pa->name, pb->name);
+       return xstricmp(pa->name, pb->name);
 }
 
 /*