Wiki Tables for Multi-sort Media

I am trying to enable the sorting of a wiki table that uses the "sortable" class by multiple columns.

For instance:

 {| class="wikitable sortable"
  |-
  |Col 1
  |Col 2
  |Col 3
  |-
  |3
  |a
  |tee
  |-
  |2
  |c
  |hot
  |-
  |5
  |b
  |apple
  |}

This will give you the basic sorted table in the wiki, but it will not allow you to sort by multiple columns.

Does anyone know a way to do this or an extension that I can install that will allow me to do this?

+3
source share
2 answers

You can find any JavaScript code on the Internet for sortable tables and put that code in your JavaScript JavaScript or Javascript site. This simple one works because someone has already added code for sortable tables with a single column that is looking for tables of class "wikitable sortable".

0

Wiki, -, / .

, . ( 1 2)

, , , StackOverflow, , , .

+2

Source: https://habr.com/ru/post/1769834/


All Articles