ywana-core8 0.0.973 → 0.0.974

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.
package/dist/index.umd.js CHANGED
@@ -2674,6 +2674,9 @@
2674
2674
  }
2675
2675
  }
2676
2676
  var tks = Array.isArray(tokens) ? tokens : [];
2677
+ var sortedOptions = options ? options.sort(function (a, b) {
2678
+ return a.label.localeCompare(b.label);
2679
+ }) : null;
2677
2680
  return /*#__PURE__*/React__default["default"].createElement("div", {
2678
2681
  className: "tokenField"
2679
2682
  }, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
@@ -2692,7 +2695,7 @@
2692
2695
  });
2693
2696
  }), options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
2694
2697
  onChange: changeDropDown,
2695
- options: options,
2698
+ options: sortedOptions,
2696
2699
  predictive: true,
2697
2700
  verbose: false
2698
2701
  }) : /*#__PURE__*/React__default["default"].createElement("input", {