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.cjs CHANGED
@@ -2681,6 +2681,9 @@ var TokenField = function TokenField(_ref) {
2681
2681
  }
2682
2682
  }
2683
2683
  var tks = Array.isArray(tokens) ? tokens : [];
2684
+ var sortedOptions = options ? options.sort(function (a, b) {
2685
+ return a.label.localeCompare(b.label);
2686
+ }) : null;
2684
2687
  return /*#__PURE__*/React__default["default"].createElement("div", {
2685
2688
  className: "tokenField"
2686
2689
  }, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
@@ -2699,7 +2702,7 @@ var TokenField = function TokenField(_ref) {
2699
2702
  });
2700
2703
  }), options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
2701
2704
  onChange: changeDropDown,
2702
- options: options,
2705
+ options: sortedOptions,
2703
2706
  predictive: true,
2704
2707
  verbose: false
2705
2708
  }) : /*#__PURE__*/React__default["default"].createElement("input", {