sort the list in the same way ls actually does: using strcoll,

you want to add the line setlocale(LC_COLLATE, ""); or setlocale(LC_ALL, "");
to your application if you not already have


SVN revision: 28511
This commit is contained in:
Peter Wehrfritz 2007-03-01 16:17:04 +00:00
parent 22d230e851
commit 370a06b3c9
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ ecore_file_ls(const char *dir)
}
closedir(dirp);
ecore_list_sort(list, ECORE_COMPARE_CB(strcasecmp), ECORE_SORT_MIN);
ecore_list_sort(list, ECORE_COMPARE_CB(strcoll), ECORE_SORT_MIN);
ecore_list_goto_first(list);
return list;