diff --git a/lib/services/db_helper.dart b/lib/services/db_helper.dart index c9d0dc5..d794d15 100644 --- a/lib/services/db_helper.dart +++ b/lib/services/db_helper.dart @@ -107,6 +107,7 @@ class DbHelper { static Stream>> get feedStream => _supabase.from('feed').stream(primaryKey: ['timestamp']); - static Stream>> get profilesStream => - _supabase.from('profiles').stream(primaryKey: ['id']); + static Stream>> get profilesStream => _supabase + .from('profiles') + .stream(primaryKey: ['id']).order('points', ascending: false); }