diff --git a/backend/api/views/example.py b/backend/api/views/example.py index 75b45ffd..55121a27 100644 --- a/backend/api/views/example.py +++ b/backend/api/views/example.py @@ -34,7 +34,7 @@ class ExampleList(generics.ListCreateAPIView): value = random.randrange(2, 20) queryset = queryset.annotate(sort_id=F('id') % value).order_by('sort_id', 'id') else: - queryset = queryset.order_by('id') + queryset = queryset.order_by('created_at') return queryset def perform_create(self, serializer):