@dxos/util 0.7.2 → 0.7.3-staging.971cd8d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1809,6 +1809,10 @@ var stripUndefinedValues = (obj) => {
1809
1809
  }
1810
1810
  return obj;
1811
1811
  };
1812
+ var sortKeys = (obj) => Object.keys(obj).sort().reduce((sorted, key) => {
1813
+ sorted[key] = obj[key];
1814
+ return sorted;
1815
+ }, {});
1812
1816
  var arrayMove = (array, from, to) => {
1813
1817
  array.splice(to < 0 ? array.length + to : to, 0, array.splice(from, 1)[0]);
1814
1818
  return array;
@@ -2055,6 +2059,7 @@ export {
2055
2059
  safeParseInt,
2056
2060
  safeParseJson,
2057
2061
  setDeep,
2062
+ sortKeys,
2058
2063
  stringToArray,
2059
2064
  stringifyTree,
2060
2065
  stripUndefinedValues,