Group resources by type
Merge pull request #2 from chenc/patch-1

Group resources by type