diff --git a/data/interfaces/default/newsletter_config.html b/data/interfaces/default/newsletter_config.html index bc4da76c..21577380 100644 --- a/data/interfaces/default/newsletter_config.html +++ b/data/interfaces/default/newsletter_config.html @@ -120,14 +120,14 @@ % if isinstance(item['select_options'], dict): % for section, options in item['select_options'].iteritems(): - % for option in options: + % for option in sorted(options, key=lambda x: x['text'].lower()): % endfor % endfor % else: - % for option in item['select_options']: + % for option in sorted(item['select_options'], key=lambda x: x['text'].lower()): % endfor % endif @@ -263,14 +263,14 @@ % if isinstance(item['select_options'], dict): % for section, options in item['select_options'].iteritems(): - % for option in options: + % for option in sorted(options, key=lambda x: x['text'].lower()): % endfor % endfor % else: - % for option in item['select_options']: + % for option in sorted(item['select_options'], key=lambda x: x['text'].lower()): % endfor % endif diff --git a/plexpy/newsletters.py b/plexpy/newsletters.py index 5699b5a6..3e8ff6aa 100644 --- a/plexpy/newsletters.py +++ b/plexpy/newsletters.py @@ -560,7 +560,7 @@ class RecentlyAdded(Newsletter): 'show': 'TV Show Libraries', 'artist': 'Music Libraries'} sections = {} - for s in sorted(self._get_sections(), key=lambda x: x['section_name']): + for s in self._get_sections(): if s['section_type'] != 'photo': library_type = library_types[s['section_type']] group = sections.get(library_type, [])