X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fresults%2FList.js;h=f4d4ff10ee502130f44f65a9e03762347100d692;hb=d32516335ea2534e15256c948e9c38d3de40794b;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..f4d4ff1 100644 --- a/resources/js/components/results/List.js +++ b/resources/js/components/results/List.js @@ -2,9 +2,11 @@ import PropTypes from 'prop-types'; import React from 'react'; import Item from './Item'; +import { sortByResult } from '../../helpers/Participant'; +import { getRunners } from '../../helpers/Tournament'; -const List = ({ round, tournament }) =>
- {tournament.participants.map(participant => +const List = ({ round, tournament }) =>
+ {sortByResult(getRunners(tournament), round).map(participant =>