]> git.phdru.name Git - m_librarian.git/commitdiff
Sort books by series, serial number and title
authorOleg Broytman <phd@phdru.name>
Sat, 21 May 2016 20:04:16 +0000 (23:04 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 21 May 2016 20:04:16 +0000 (23:04 +0300)
scripts/ml-search.py

index 985e6d7a1ce505ce13f23e699282ac9cec6dec42..b4c01e2d717f3cc285e2f5a72093cac6a8ef5671 100755 (executable)
@@ -60,7 +60,7 @@ def _search_books(case_sensitive, search_type, args):
     if case_sensitive is None:
         case_sensitive = _guess_case_sensitivity(values)
     for book in search_books(search_type, case_sensitive, values,
-                             orderBy='title'):
+                             orderBy=('series', 'ser_no', 'title')):
         print book.title.encode(default_encoding)
         if args.details >= 1:
             print " ", _("Author(s)"), ":",