src/helpers.js
function getSortedObject(object, compareFunction)
{
  const keys = Object.keys(object);

  keys.sort( compareFunction );

  return keys.reduce(
    (sorted, key) => (sorted[ key ] = object[ key ], sorted),
    Object.create(null)
  );
}
function getSortedObject(object, compareFunction)
{
  const keys = Object.keys(object);

  keys.sort( compareFunction );

  return keys.reduce(
    (sorted, key) => (sorted[ key ] = object[ key ], sorted),
    Object.create(null)
  );
}
function getSortedObject ( object , compareFunction ) { const keys = Object . keys ( object ) ; keys . sort ( compareFunction ) ; return keys . reduce ( ( sorted , key ) => ( sorted [ key ] = object [ key ] , sorted ) , Object . create ( null ) ) ; }
Get an object sorted by keys.

@param  {object} object
@param {function} compareFunction
@return {object}
Get an object sorted by keys .