first person on leaderboard is actually first

This commit is contained in:
SomnusVeritas committed 2023-10-21 01:32:13 +02:00
1 parent a15848c727
commit 4db2a63008
2 files changed
+22 -15

No files matched your search

+4 -1
View File
@@ -83,7 +83,10 @@ class DbHelper {
static Future<List<Profile>> fetchProfiles() async {
List<Profile> items = [];
final res = await _supabase.from('profiles').select();
final res = await _supabase.from('profiles').select().order(
'points',
ascending: false,
);
for (final map in res) {
items.add(Profile.fromMap(map));
}