#1324 closed enhancement (invalid)
SortableTable sorting of HTML content
Reported by: | Owned by: | Tom Trenka | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | SortTable html sort | Cc: | |
Blocked By: | Blocking: |
Description
I need to have the look of few columns different than others. Since I was not able to use class for the tables TDs, i had to put HMTL in the TD, but that brakes sorting.
[1] imho, HTML content should be sortable too by default, because sometimes users may have always the same html content to decorate columns separatly, (for example: <span class="">), therefore the content will be sortable. However, if user do not want to sort, he can always manually add 'nosort' attribute.
SortableTable?.js Line: 208
o.noSort=true;
[2] Even better thing to do is to add a new optional attribute: 'content', what will be used for sorting, if exists.
Change History (3)
comment:1 Changed 14 years ago by
Milestone: | → 0.4 |
---|---|
Owner: | changed from bill to Tom Trenka |
comment:2 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
SortableTable? wasn't ever meant to contain data other than something that could be cast as a defined data type; sorting on HTML is an issue in any number of ways, which means that not sorting on HTML was a deliberate design choice.
Therefore I'm marking this as an invalid bug.
However, you're more than welcome to move to the new FilteringTable? widget, which (among a number of other things) *does* allow sorting on HTML.