join_expressions.append(Book.j.authors)
join_expressions.append(Author.q.id == id)
books = search_books('full', None, {}, join_expressions,
- orderBy=('series', 'ser_no', 'title'),
+ orderBy=('series', 'ser_no', 'title', '-date'),
use_filters=use_filters)
return {
'author': Author.get(id),
Language, search_type, case_sensitive, lvalues)
join_expressions.extend(conditions)
books = search_books(search_type, case_sensitive, values, join_expressions,
- orderBy=('series', 'ser_no', 'title'),
+ orderBy=('series', 'ser_no', 'title', '-date'),
use_filters=args.filters)
if args.count:
print_count(books.count())