Fix jshint issues
Add tests for sorted output JSON objects

Given an input in an arbitrary order, confirm the output is sorted based
on filename.