#2147 closed defect (wontfix)
Sorting HTML fields in Filtering Table
Reported by: | guest | Owned by: | Tom Trenka |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When you sort information in an html field, it sorts alphabetically on the entire contents of the field - including the html tags. So, something like <a href="/forums/">Cindy</a> appears before something like <a href="/gallery/">Adam</a>
I think that by default, it should strip html tags before the sort is performed. I hacked in a simple html stripping routine and call it on any cell that is markup before the sort and now my html sorts by the value inside the tags and not the tags.
Change History (7)
comment:1 Changed 13 years ago by
Owner: | changed from anonymous to Tom Trenka |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Milestone: | → 0.9 |
---|
comment:4 Changed 13 years ago by
Component: | General → Widgets |
---|
comment:5 Changed 13 years ago by
Component: | Widgets → Dijit |
---|
This will all be redone for the new Table widget so presumably this won't be an issue anymore, but I'll leave the bug open until that widget is completed, as a reminder to check this issue.
comment:6 Changed 13 years ago by
FilteringTable? is not being ported to either Dijit or DojoX, so I'm closing the bug.
comment:7 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I'm fairly certain this is actually a bug with dojo.html.renderedTextContent, but this has been noted before.