From 1f9e22d844cc2f37cfb295ffbd991f576dc25d68 Mon Sep 17 00:00:00 2001
From: Valentin Rigal <rigal@teklia.com>
Date: Thu, 15 Oct 2020 15:54:39 +0200
Subject: [PATCH] Avoid duplicating a process elements in the pagination

---
 arkindex/dataimport/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arkindex/dataimport/api.py b/arkindex/dataimport/api.py
index b72612245a..35879bfb5d 100644
--- a/arkindex/dataimport/api.py
+++ b/arkindex/dataimport/api.py
@@ -966,4 +966,4 @@ class ListProcessElements(ListAPIView):
         if dataimport.mode not in (DataImportMode.Elements, DataImportMode.Workers):
             return Element.objects.none()
 
-        return self.retrieve_elements(dataimport).order_by('name')
+        return self.retrieve_elements(dataimport).order_by('id')
-- 
GitLab