views.ranking: add basic table sorter
templates/ranking/*.jinja: add sorting macro
templates/ranking/*.jinja: add pagination status to table sorter
views.ranking: sort by rank