Sort warnings by fingerprint for more consistency between reports.

This sorting method leads to a more stable ordering of the JSON report.  This is useful when the JSON report is checked into version control.
Merge pull request #587 from jeffyip/sort_json_reports_by_fingerprint

Sort warnings by fingerprint for more consistency between reports.