From 3c4a77bbebfd72ffec9b7e8f51b981c6867e688a Mon Sep 17 00:00:00 2001 From: Malaber Date: Fri, 15 Sep 2023 15:23:51 +0200 Subject: [PATCH] Sort matches on fullscreen page by position as well --- pages/tournament-fullscreen.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/tournament-fullscreen.js b/pages/tournament-fullscreen.js index b5dd732..5819389 100644 --- a/pages/tournament-fullscreen.js +++ b/pages/tournament-fullscreen.js @@ -7,6 +7,7 @@ import { Spinner } from 'reactstrap'; import {Match} from '../js/components/Match'; +import {sortMatchesByPositionAscending} from '../js/utils/sorting'; function FullscreenPage(props) { @@ -27,7 +28,9 @@ function Matches(props) { matches = (
keine Matches
); } else { matches = ( - {props.matches.map(match => )} + {props.matches.sort(sortMatchesByPositionAscending()).map( + match => + )} ); } return (