# HG changeset patch
# User Arnaud Vergnet <arnaud.vergnet@logilab.fr>
# Date 1709128927 -3600
#      Wed Feb 28 15:02:07 2024 +0100
# Node ID 62685fc2b6d42d75359b99dd94a563466f46e644
# Parent  e1d6841c77aa47fc58c76503f7f049d5a3a98db3
fix(frontend): show latest import processes first

diff --git a/frontend/src/api/cubicweb.ts b/frontend/src/api/cubicweb.ts
--- a/frontend/src/api/cubicweb.ts
+++ b/frontend/src/api/cubicweb.ts
@@ -287,6 +287,7 @@
     return (
       "Any X, MAX(VAL_DATE), VAL_RECIPE, VAL_PROJECT, VAL_STATE " +
       "GROUPBY X, VAL_RECIPE, VAL_PROJECT, VAL_STATE " +
+      "ORDERBY MAX(VAL_DATE) DESC " +
       "WHERE X is ImportProcess, " +
       getImportRecipePart(hasDataService, hasRecipe) +
       getImportProcedurePart(hasProject) +