"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = sortObject;


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