@dcrackel/hematournamentui 1.0.422 → 1.0.424

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.
@@ -35945,7 +35945,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
35945
35945
  }, {});
35946
35946
  },
35947
35947
  sortFencersByCriteria(n) {
35948
- n.sort((e, t) => t.WinPercentage !== e.WinPercentage ? t.WinPercentage - e.WinPercentage : t.TotalWins !== e.TotalWins ? t.TotalWins - e.TotalWins : t.Indicator !== e.Indicator ? t.Indicator - e.Indicator : t.PointsScored - e.PointsScored);
35948
+ return Array.isArray(n) ? [...n].sort((e, t) => t.WinPercentage !== e.WinPercentage ? t.WinPercentage - e.WinPercentage : t.TotalWins !== e.TotalWins ? t.TotalWins - e.TotalWins : t.Indicator !== e.Indicator ? t.Indicator - e.Indicator : t.PointsScored - e.PointsScored) : (console.error("Invalid input to sortFencersByCriteria:", n), null);
35949
35949
  },
35950
35950
  markTopFencers(n, e) {
35951
35951
  n.forEach((t, r) => {