Completion: use g_list_prepend() instead of append()

append() has O(N) time complexity, so doing it in a loop is not really a
good idea… prepend() is O(1). And anyway the list is sorted at the end.