Directory list should sort case-insensitive. Anything else is counter-intuitive and annoying. :)

SVN revision: 16694
This commit is contained in:
xcomputerman 2005-09-12 02:42:39 +00:00 committed by xcomputerman
parent 9a9c3507b4
commit 7bd778bd29
1 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ ecore_file_ls(const char *dir)
ecore_list_goto_first(list);
while ((file = ecore_list_current(list)))
{
if (strcmp(file, dp->d_name) > 0)
if (strcasecmp(file, dp->d_name) > 0)
{
f = strdup(dp->d_name);
ecore_list_insert(list, f);
@ -259,7 +259,7 @@ ecore_file_ls(const char *dir)
if (!file)
{
f = strdup(dp->d_name);
ecore_list_append(list, f);
ecore_list_insert(list, f);
}
}
}