1

http://twiki.org/cgi-bin/view/Plugins/TablePlugin explains how to sort a table in TWiki by initsort. But how to break tie with the values in a second column?

Meng Lu
  • 13,726
  • 12
  • 39
  • 47

1 Answers1

2

Best to ask TWiki support questions in the support forum on TWiki.org.

The TablePlugin does not support sorting by more than one column.

You could enhance the plugin (and contribute back the enhancements).

Alternatively, look into a pure JavaScript solution, such as Sorting HTML table by two columns

Community
  • 1
  • 1
Peter Thoeny
  • 7,379
  • 1
  • 10
  • 20
  • Thanks. But how to embed the JavaScript function into the particular TWiki page that contains the table? – Meng Lu Jan 26 '17 at 18:49
  • Do a raw edit on any TWiki topic, and add any html/css/js code you like. – Peter Thoeny Jan 26 '17 at 18:56
  • 2
    Peter Thoeny answers a question about TWiki and doesn't get upvoted, what a time to be alive. But now I need the answer so I get to upvote! – dsolimano May 23 '19 at 13:51