Make generate_source_list really return a list

It is way better when the API really does what it says it does.
Sort before returning from generate_source_list