Sort games by name

This commit is contained in:
2025-02-22 18:07:46 +01:00
parent 1c1ac3385b
commit bbd3583939

View File

@@ -102,7 +102,7 @@ last_updated = excluded.last_updated
static Future<Map<String, Game>> getAll() async { static Future<Map<String, Game>> getAll() async {
final db = DB.db; final db = DB.db;
final games = await db.rawQuery( final games = await db.rawQuery(
'SELECT name, actual_version, last_played, rss_feed_url, version_regex, last_updated, image_data FROM games', 'SELECT name, actual_version, last_played, rss_feed_url, version_regex, last_updated, image_data FROM games ORDER BY name',
); );
return games return games
.map((e) => Game.fromMap(e)) .map((e) => Game.fromMap(e))