Sort letter brandings alphabetically

Currently the brandings have non-deterministic sorting, which means
the order changes from page load to page load. This makes it hard to
find the item you’re looking for.

This commit sorts them by the name of the branding, same as for email
brandings.
This commit is contained in:
Chris Hill-Scott
2018-11-05 13:31:02 +00:00
parent 684d4f7782
commit 65cc6adabf
3 changed files with 21 additions and 1 deletions

View File

@@ -2492,6 +2492,7 @@ def mock_get_letter_email_branding(mocker):
return {
'001': 'HM Government',
'500': 'Land Registry',
'999': 'Animal and Plant Health Agency',
}
return mocker.patch(