add repository information to metadata
ignore generated files
also sort by ref name when ref counts are equal
Merge pull request #1 from karenetheridge/topic/sort_by_name

Topic/sort by name