Automatically sort AngularJS app files depending on module definitions and usage