It's better when it's simple

User Tools

Site Tools


sortablejs Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes

plugin JavaScript for sortable tables

Last updated on
Conflicts with
cellbg, infomail, tabinclude

Similar to datatables, tablelayout

Tagged with javascript, listing, sort, tables

Needed for linkmanager


A JavaScript-based (client-side) plugin, which can be used to create sortable tables. It is optional for linkmanager plugin.

For server-side sorting or more robust sort facilities use Sam Wilson's sorter, based on (supports server-side sorting):

Previously maintained by oiv (Otto Vainio at


After installing the plugin you should make sure that your DokuWiki cache is updated. This can easily be done by changing any parameter value in settings (or by doing a touch conf/local.php).

You need to set <sortable> and </sortable> tags around your table.


Table initially sorted by column 1

<sortable 1>

Table initially reverse sorted by column 1

<sortable r1>

To sort the columns you (the page viewer) just needs to click on the correct column on the first row. A second click on the same column reverses sort.


<sortable [[r]column] [sumrow[=2]] [column=alpha|numeric|date|nosort] [3phase]>

  <sortable r1 sumrow=2 3phase 1=numeric 2=alpha 3=nosort>
            ││   │        │         │       │      │
            ││   │        │         │       │      └ No sort option for column 3
            ││   │        │         │       └ Sort column 2 as text always
            ││   │        │         └ Sort column 1 as numeric always
            ││   │        └ Add a 3 phase sort option. Normal, Reverse and Back to original order.
            ││   └ Prevent last 2 rows from sort. The number can be omitted. Default is last row (=1)
            │└ Initially sort by column 1 on page load
            └ Reverse initial sort
plugin/sortablejs.txt · Last modified: 2021-02-15 21:58 by Aleksandr