ywana-core8 0.0.977 → 0.0.978

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.
@@ -2672,10 +2672,10 @@ var TokenField = function TokenField(_ref) {
2672
2672
  }
2673
2673
  }
2674
2674
  var tks = Array.isArray(tokens) ? tokens : [];
2675
- var sortedOptions = options ? options.sort(function (a, b) {
2675
+ var sortedOptions = options ? options.toSorted(function (a, b) {
2676
2676
  if (!a.label || !b.label) return 0;
2677
2677
  try {
2678
- a.label.localeCompare(b.label);
2678
+ return a.label.localeCompare(b.label);
2679
2679
  } catch (error) {
2680
2680
  console.log('Error sorting options', error, a, b);
2681
2681
  return 0;