mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Sort folders alphabetically
To match the order in which templates are sorted.
This commit is contained in:
@@ -289,7 +289,10 @@ class Service():
|
||||
|
||||
@cached_property
|
||||
def all_template_folders(self):
|
||||
return template_folder_api_client.get_template_folders(self.id)
|
||||
return sorted(
|
||||
template_folder_api_client.get_template_folders(self.id),
|
||||
key=lambda folder: folder['name'].lower(),
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def all_template_folder_ids(self):
|
||||
|
||||
Reference in New Issue
Block a user