diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index a819b75dc1..cb3faf9d9b 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -301,7 +301,7 @@ class TopLevel(Feed): # {{{ categories] for x in subcatalogs: self.root.append(x) - for library_id, library_name in request_context.library_map.iteritems(): + for library_id, library_name in sorted(request_context.library_map.iteritems(), key=lambda item: sort_key(item[1])): id_ = 'calibre-library:' + library_id self.root.append(E.entry( TITLE(_('Library:') + ' ' + library_name),