'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function node_sort(compare) {
  return this.eachBefore(function(node) {
    if (node.children) {
      node.children.sort(compare);
    }
  });
}

exports.default = node_sort;
