X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fresults%2FList.js;h=8775529493d6d9909ff1cf3fd9674b41ca62edb7;hb=920f11ddfeb2175e4e1556886773dcd044c6085b;hp=11eb9a8f4f5eb1f07b7aaa7a13efb431de0923ec;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/resources/js/components/results/List.js b/resources/js/components/results/List.js index 11eb9a8..8775529 100644 --- a/resources/js/components/results/List.js +++ b/resources/js/components/results/List.js @@ -2,10 +2,12 @@ import PropTypes from 'prop-types'; import React from 'react'; import Item from './Item'; +import { sortByResult } from '../../helpers/Participant'; -const List = ({ round, tournament }) =>
- {tournament.participants.map(participant => +const List = ({ round, tournament }) =>
+ {sortByResult(tournament.participants, round).map((participant, index) =>