Skip to content

Commit

Permalink
return sorted list of folders by title
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Nov 20, 2023
1 parent 7e1dc91 commit 4d85b2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def reply(self):
"id": uo.getId(),
"uid": uo.UID(),
"contact_info": self.get_uo_contact_info(uo),
"prenotazioni_folder": folders,
"prenotazioni_folder": sorted(
folders, key=lambda x: x["title"]
),
}
)
return response
Expand Down

0 comments on commit 4d85b2d

Please sign in to comment.