server: sort attachments

This commit is contained in:
King Kévin 2023-01-28 10:16:51 +01:00
parent 840a806188
commit c0da2a1a1b
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ def get_part_by_id(id)
part["attachments"] << ATTACHMENTS + "/" + part["name"] + "/" + file
end
end
part["attachments"].sort!
if parent then
part["attachments"] += parent["attachments"]
end