diff --git a/src/pages/elections/Results.tsx b/src/pages/elections/Results.tsx index c7c9c53..8fd05fa 100644 --- a/src/pages/elections/Results.tsx +++ b/src/pages/elections/Results.tsx @@ -77,7 +77,7 @@ export default function Results() { - {electionsResults.sort((a, b) => b.final - a.final).map((result, index) => ( + {electionsResults.sort((a, b) => ('' + a.name).localeCompare(b.name)).map((result, index) => ( {index + 1} @@ -86,7 +86,7 @@ export default function Results() { {result.for} {result.abstain} {result.against} - = 50 ? 'text-green-500' : 'text-red-500'} font-semibold`}>{result.final} + = 50 ? 'text-green-500' : 'text-red-500'} font-semibold`}>{result.final}% ))} @@ -98,108 +98,6 @@ export default function Results() { ); } -function BellIcon(props) { - return ( - - - - - ); -} - -function GaugeIcon(props) { - return ( - - - - - ); -} - -function LogOutIcon(props) { - return ( - - - - - - ); -} - -function Package2Icon(props) { - return ( - - - - - - ); -} - -function UserIcon(props) { - return ( - - - - - ); -} - function UsersIcon(props) { return (