<adata-toggle="tooltip"title="{{_('Sort ascending according to download count')}}"id="hot_asc"class="btn btn-primary{% if order == "hotasc"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='hotasc')}}"><spanclass="glyphicon glyphicon-sort-by-order"></span></a>
<adata-toggle="tooltip"title="{{_('Sort descending according to download count')}}"id="hot_desc"class="btn btn-primary{% if order == "hotdesc"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='hotdesc')}}"><spanclass="glyphicon glyphicon-sort-by-order-alt"></span></a>
{% else %}
<adata-toggle="tooltip"title="{{_('Sort according to book date, newest first')}}"id="new"class="btn btn-primary{% if order == "new"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='new')}}"><spanclass="glyphicon glyphicon-book"></span><spanclass="glyphicon glyphicon-calendar"></span><spanclass="glyphicon glyphicon-sort-by-order"></span></a>
<adata-toggle="tooltip"title="{{_('Sort according to book date, oldest first')}}"id="old"class="btn btn-primary{% if order == "old"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='old')}}"><spanclass="glyphicon glyphicon-book"></span><spanclass="glyphicon glyphicon-calendar"></span><spanclass="glyphicon glyphicon-sort-by-order-alt"></span></a>
<adata-toggle="tooltip"title="{{_('Sort title in alphabetical order')}}"id="asc"class="btn btn-primary{% if order == "abc"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='abc')}}"><spanclass="glyphicon glyphicon-font"></span><spanclass="glyphicon glyphicon-sort-by-alphabet"></span></a>
<adata-toggle="tooltip"title="{{_('Sort title in reverse alphabetical order')}}"id="desc"class="btn btn-primary{% if order == "zyx"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='zyx')}}"><spanclass="glyphicon glyphicon-font"></span><spanclass="glyphicon glyphicon-sort-by-alphabet-alt"></span></a>
<adata-toggle="tooltip"title="{{_('Sort authors in alphabetical order')}}"id="auth_az"class="btn btn-primary{% if order == "authaz"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='authaz')}}"><spanclass="glyphicon glyphicon-user"></span><spanclass="glyphicon glyphicon-sort-by-alphabet"></span></a>
<adata-toggle="tooltip"title="{{_('Sort authors in reverse alphabetical order')}}"id="auth_za"class="btn btn-primary{% if order == "authza"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='authza')}}"><spanclass="glyphicon glyphicon-user"></span><spanclass="glyphicon glyphicon-sort-by-alphabet-alt"></span></a>
<adata-toggle="tooltip"title="{{_('Sort according to publishing date, newest first')}}"id="pub_new"class="btn btn-primary{% if order == "pubnew"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='pubnew')}}"><spanclass="glyphicon glyphicon-calendar"></span><spanclass="glyphicon glyphicon-sort-by-order"></span></a>
<adata-toggle="tooltip"title="{{_('Sort according to publishing date, oldest first')}}"id="pub_old"class="btn btn-primary{% if order == "pubold"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='pubold')}}"><spanclass="glyphicon glyphicon-calendar"></span><spanclass="glyphicon glyphicon-sort-by-order-alt"></span></a>
<adata-toggle="tooltip"title="{{_('Sort ascending according to series index')}}"id="series_asc"class="btn btn-primary{% if order == "seriesasc"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='seriesasc')}}"><spanclass="glyphicon glyphicon-sort-by-order"></span></a>
<adata-toggle="tooltip"title="{{_('Sort descending according to series index')}}"id="series_desc"class="btn btn-primary{% if order == "seriesdesc"%}active{%endif%}"href="{{url_for('web.books_list', data=page, book_id=id, sort_param='seriesdesc')}}"><spanclass="glyphicon glyphicon-sort-by-order-alt"></span></a>