forked from enlightenment/efl
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:
parent
22d230e851
commit
370a06b3c9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue