code: function sortResults(results) {
    var fileArray = {
      error: [],
      warning: [],
      clean: []
    };
    results.forEach(function (result) {
      if (result.errorCount > 0) {
        fileArray.error.push(result);
      } else if (result.warningCount > 0) {
        fileArray.warning.push(result);
      } else {
        fileArray.clean.push(result);
      }
    });
    return lodash.concat(fileArray.error, fileArray.warning, fileArray.clean);
  }
docs: Sorts the result files after severity in following order:
  
  - Error
  - Warning
  - Clean
  
  @param {Array}    results  results
  @returns {Array}           sorted results