mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Sort items before serializing to minimize diff
This commit is contained in:
parent
6854cd0ee3
commit
1769a68719
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ def serialize(tag, headers=(), items=()):
|
||||||
items if needed (ie. for calendars).
|
items if needed (ie. for calendars).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
items = sorted(items, key=lambda x: x.name)
|
||||||
if tag == "VADDRESSBOOK":
|
if tag == "VADDRESSBOOK":
|
||||||
lines = [item.text for item in items]
|
lines = [item.text for item in items]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue