From bc18311155f89da73b8d563395fdf55cc4794448 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Fri, 27 Mar 2026 13:34:53 +0100 Subject: [PATCH] fix: trie les titres par label avant de regrouper par album dans ArtisteController --- Webzine.WebApplication/Controllers/ArtisteController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);