@xyo-network/os-react-runtime 7.1.0 → 7.1.1

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.
@@ -705,13 +705,13 @@ import {
705
705
  } from "@xyo-network/os-model";
706
706
  var DappInstallTypeFilters = {
707
707
  installed(registeredDappSets) {
708
- return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets?.filter(isInstalledDappSet).sort((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
708
+ return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets?.filter(isInstalledDappSet).toSorted((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
709
709
  },
710
710
  preInstalled(registeredDappSets) {
711
- return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets?.filter(isPreInstalledDappSet).sort((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
711
+ return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets?.filter(isPreInstalledDappSet).toSorted((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
712
712
  },
713
713
  uninstalled(registeredDappSets) {
714
- return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets.filter(isUnInstalledDappSet).sort((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
714
+ return registeredDappSets && registeredDappSets?.length > 0 ? registeredDappSets.filter(isUnInstalledDappSet).toSorted((a2, b) => a2.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1) : void 0;
715
715
  }
716
716
  };
717
717
 
@@ -4099,7 +4099,7 @@ var sampleData = [
4099
4099
  { name: "Japan", value: 421 }
4100
4100
  ];
4101
4101
  var HorizontalBarGraph = ({ items = sampleData, ...props }) => {
4102
- const itemsSortedByValue = items.sort(function(a2, b) {
4102
+ const itemsSortedByValue = items.toSorted(function(a2, b) {
4103
4103
  const keyA = a2.value, keyB = b.value;
4104
4104
  if (keyA > keyB) return -1;
4105
4105
  if (keyA < keyB) return 1;