|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
const PlayerScores = ({ players, onReturnToStart }) => {
|
|
|
const elems = players
|
|
|
.filter(({ currentRound }) => currentRound === null)
|
|
|
- .sort((p1, p2) => p1.totalScore > p2.totalScore ? 1 : (p1.totalScore < p2.totalScore ? -1 : 0))
|
|
|
+ .sort((p1, p2) => p1.totalScore > p2.totalScore ? -1 : (p1.totalScore < p2.totalScore ? 1 : 0))
|
|
|
.map(({ name, guesses, totalScore }) => (
|
|
|
<div>
|
|
|
<p>{name}</p>
|