diff --git a/database/repositories/scores.py b/database/repositories/scores.py index 3c83e80..ec80432 100644 --- a/database/repositories/scores.py +++ b/database/repositories/scores.py @@ -113,7 +113,8 @@ def fetch_best( query = query.filter(DBBeatmap.status == 1) \ .join(DBScore.beatmap) - return query.all() + return query.order_by(DBScore.pp.desc()) \ + .all() def fetch_personal_best( beatmap_id: int,