sources: show sources with error first
Merge pull request #477 from hdhoang/master

sources: show sources with error first