Liferay.Loader.define("commerce-dashboard-web$d3-shape@1.3.7/src/order/appearance", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import none from "./none.js";

    export default function (series) {
      var peaks = series.map(peak);
      return none(series).sort(function (a, b) {
        return peaks[a] - peaks[b];
      });
    }

    function peak(series) {
      var i = -1,
          j = 0,
          n = series.length,
          vi,
          vj = -Infinity;
      while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
      return j;
    }
  }
});
//# sourceMappingURL=appearance.js.map