group results by contributors
refactoring and indentation fixing
Merge pull request #365 from janno42/sort_results

group results by contributors