Danny Milosavljevic <dan...@scratchpost.org> skribis: > On Wed, 11 Jan 2017 00:06:42 +0100 > l...@gnu.org (Ludovic Courtès) wrote: > >> Presumably ‘gdk-pixbuf-query-loaders’, which generates ‘loaders.cache’, >> does not sort the entries returned by readdir(2). > > Yep. > > gdk-pixbuf/queryloaders.c line 355 uses g_dir_open. > > Docs: > https://developer.gnome.org/glib/stable/glib-File-Utilities.html#g-dir-open > "Note that the ordering is not defined." > > One could use g_list_append to append it to a list and then g_list_sort and > then g_list_free. Like below (untested! Seriously!):
Sounds like the right approach, would you like to test it? :-) Ludo’.