Opened 15 years ago
Last modified 10 years ago
#8949 new enhancement
add sortable tables to wiki
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | sortable table javascript |
Cc: | itamarost@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
See
http://en.wikipedia.org/wiki/Help:Sorting
for Wikipedia's approach to sortable tables.
An approach that does not require JavaScript is preferred, even if it causes the page to reload, but any approach will do.
Useful trac-hacks related to this ticket may include:
http://trac-hacks.org/wiki/FlatTableMacro http://trac-hacks.org/wiki/MultiSortReportPatch http://trac-hacks.org/wiki/WikiTableMacro http://trac-hacks.org/wiki/SqlQueryMacro
A work-around is also appreciated.
Attachments (0)
Change History (11)
comment:1 by , 15 years ago
Milestone: | → 1.0 |
---|
comment:3 by , 15 years ago
Cc: | added |
---|
That's an interesting idea.
Could be invaluable when including spreadsheets in wiki (plugin / macro).
comment:5 by , 14 years ago
Milestone: | triaging → next-major-0.1X |
---|
comment:6 by , 14 years ago
#9469 was closed as duplicate. It provided a link to sorttable, though we'll probably pick something jQuery based instead, like tablesorter, or roll our simpler own.
follow-up: 9 comment:7 by , 13 years ago
That would be really nice indeed. Could you please tell us how far we are today? Cheers, M
comment:9 by , 13 years ago
Replying to mtrocme:
Could you please tell us how far we are today?
Unfortunately so far no one has been interested enough in this feature to start working on it.
You could try a hack / plugin I just created: th:TableSorterPlugin
As comment:6's proposed it's based on tablesorter. That seems to have a few downsides though. For example it doesn't work with normal wiki tables as it requires THEAD
tags that are not generated there. So I'd say it's not likely to be included in Trac.
But you'd be welcome to fix / improve this.
That's a nice idea.