Skip to content

Commit 9e219d3

Browse files
committed
Painting tool: ensure writable stacks are always returned in same order
1 parent f322127 commit 9e219d3

File tree

1 file changed

+1
-1
lines changed
  • django/applications/catmaid/control

1 file changed

+1
-1
lines changed

django/applications/catmaid/control/stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def get(self, request:HttpRequest, project_id=None) -> JsonResponse:
197197
"""
198198
project = Project.objects.get(pk=project_id)
199199
info = []
200-
for writable_stack in project.writable_stacks.all():
200+
for writable_stack in project.writable_stacks.all().order_by('name'):
201201
info.append({
202202
'id': writable_stack.id,
203203
'user_id': writable_stack.user_id,

0 commit comments

Comments
 (0)