10.sql = SELECT "p:home&r=0|t:Home|c:qfq-100 qfq-left" AS _pagev
Tablesorter
-----------
QFQ includes a third-party client-side table sorter. tablesorter 2.31.0 is used, see official docs here: https://mottie.github.io/tablesorter/docs/index.html
To turn any table into a sortable table, use this simple setup:
* Ensure that your QFQ installation is importing the appropriate js/css files, see setup-css-js_.
* Add the `class="tablesorter"` to your `<table>` element.
* Make sure your `<table>` has a `<thead>` and `<tbody>`.
In addition to the *tablesorter* class, you can add a *tablesorter-filter* and/or *tablesorter-pager* to add
filter options and pagination, respectively. Please note that filtering and/or paging is only supported in combination
with sorting.
Example: ::
10 {
sql = SELECT id, CONCAT('form&form=person&r=', id) AS _Pagee, lastName FROM person
head = <table class="table tablesorter tablesorter-filter tablesorter-pager">