fix: trie les titres par label avant de regrouper par album dans ArtisteController

This commit is contained in:
mirage
2026-03-27 13:34:53 +01:00
parent b8efa61e08
commit bc18311155

View File

@@ -58,7 +58,10 @@
IdArtiste = artiste.IdArtiste,
Nom = artiste.Nom,
Biographie = artiste.Biographie,
AlbumsGroupes = artiste.Titres.GroupBy(t => t.Album),
AlbumsGroupes = artiste.Titres
.OrderBy(t => t.Libelle)
.GroupBy(t => t.Album)
.OrderBy(g => g.Key),
};
this.logger.LogInformation("Artiste trouvé : {NomArtiste}", nom);