{"size": 231, "ext": "js", "max_stars_repo_path": "src/utils/object/sort.js", "max_stars_repo_name": "stringali1/vueproject", "max_stars_repo_stars_event_min_datetime": "2019-05-24T12:11:59.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-24T12:11:59.000Z", "max_issues_repo_path": "src/utils/object/sort.js", "max_issues_repo_name": "stringali1/vueproject", "max_issues_repo_issues_event_min_datetime": "2021-09-02T19:57:33.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T19:57:33.000Z", "max_forks_repo_path": "src/utils/object/sort.js", "max_forks_repo_name": "stringali1/vueproject", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 16.5, "max_line_length": 49, "alphanum_fraction": 0.5584415584}
/** @flow */

/**
 * Sort an object.
 */
export default function sortObject(obj: Object) {
  return Object.keys(obj)
    .sort()
    .reduce(function (result, key) {
      result[key] = obj[key];
      return result;
    }, {});
}
