diff --git a/Webzine.WebApplication/Controllers/ArtisteController.cs b/Webzine.WebApplication/Controllers/ArtisteController.cs index 74165a7..900ec19 100644 --- a/Webzine.WebApplication/Controllers/ArtisteController.cs +++ b/Webzine.WebApplication/Controllers/ArtisteController.cs @@ -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);