From: Oleg Broytman Date: Sat, 21 May 2016 20:04:16 +0000 (+0300) Subject: Sort books by series, serial number and title X-Git-Tag: 0.0.7~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d6094d78376845dd097f1ed72609f299913bc331;p=m_librarian.git Sort books by series, serial number and title --- diff --git a/scripts/ml-search.py b/scripts/ml-search.py index 985e6d7..b4c01e2 100755 --- a/scripts/ml-search.py +++ b/scripts/ml-search.py @@ -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)"), ":",