From 921092d9a3285335d9ced11b906e054dde7eb8d8 Mon Sep 17 00:00:00 2001 From: Mairi Dulaney Date: Wed, 24 Apr 2019 11:33:01 -0700 Subject: [PATCH] Set queryset order for member-exchange endpoint --- private_sharing/api_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private_sharing/api_views.py b/private_sharing/api_views.py index c8dbad733..b462eb29f 100644 --- a/private_sharing/api_views.py +++ b/private_sharing/api_views.py @@ -159,7 +159,7 @@ def get_queryset(self): sources_shared = self.get_sources_shared(self.obj) sources_shared.append(self.obj.project.id_label) files = all_files.filter(source__in=sources_shared) - return files + return files.order_by("source", "id") def list(self, request, *args, **kwargs): """