When not sorting the file list, don't preserve read order
If the caller doesn't want the list to be sorted, there is no need to preserve the order in which the files were actually read, since that order is undefined anyway.
This commit is contained in:
parent
13a7fb521e
commit
c30936028e
@ -1440,8 +1440,6 @@ GSList *utils_get_file_list_full(const gchar *path, gboolean full_path, gboolean
|
|||||||
/* sorting last is quicker than on insertion */
|
/* sorting last is quicker than on insertion */
|
||||||
if (sort)
|
if (sort)
|
||||||
list = g_slist_sort(list, (GCompareFunc) utils_str_casecmp);
|
list = g_slist_sort(list, (GCompareFunc) utils_str_casecmp);
|
||||||
else
|
|
||||||
list = g_slist_reverse(list);
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user