From 6596b8be2bdca7c43678a56c23fdaa8578511cda Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:42:29 -0700 Subject: [PATCH] Change: sort custom fields alphabetically by default --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index a69293ee9..6f9caa987 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -3923,7 +3923,7 @@ class CustomFieldViewSet(PermissionsAwareDocumentCountMixin, ModelViewSet): document_count_through = CustomFieldInstance document_count_source_field = "field_id" - queryset = CustomField.objects.all().order_by("-created") + queryset = CustomField.objects.all().order_by("name") @extend_schema_view(