Skip to content

Commit

Permalink
sort cf by title
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Oct 28, 2024
1 parent 10ef8d4 commit 0cc7656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papermerge/core/db/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_docs_by_type(
rows = session.execute(text(stmt), params)

for document_id, group in itertools.groupby(rows, lambda r: r.doc_id):
items = list(group)
items = sorted(list(group), key=lambda x: x.cf_name)
custom_fields = []

for item in items:
Expand Down

0 comments on commit 0cc7656

Please sign in to comment.