Revert "Fix T38303: Inconsistent sorting of names in Append/Link view"
authorCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jan 2014 14:29:29 +0000 (01:29 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jan 2014 14:29:29 +0000 (01:29 +1100)
This reverts commit ba49d7e0e338b2b85cc162d265280bac8dc859cc.

source/blender/editors/space_file/filelist.c

index 113c7e77d73154c239f4922aa901aaeef4095aff..748a0bd884c743535ab58ce68a7420455312657e 100644 (file)
@@ -188,15 +188,8 @@ static int compare_name(const void *a1, const void *a2)
        if (strcmp(entry2->relname, ".") == 0) return (1);
        if (strcmp(entry1->relname, "..") == 0) return (-1);
        if (strcmp(entry2->relname, "..") == 0) return (1);
-
-       {
-               int cmp = BLI_natstrcmp(entry1->relname, entry2->relname);
-               if (cmp == 0) {
-                       /* when strings are a case insensitive match, we don't want a random order for qsort [#38303] */
-                       cmp = strcmp(entry1->relname, entry2->relname);
-               }
-               return cmp;
-       }
+       
+       return (BLI_natstrcmp(entry1->relname, entry2->relname));
 }
 
 static int compare_date(const void *a1, const void *a2)