Is your feature request related to a problem? Please describe.
When there is a big table...
Describe the solution you'd like
It would be nice for big tables to sort by column.
Like on a button/header click or as a pre-process step?
@sidvishnoi, see https://github.com/w3c/did-spec-registries/pull/273 ... but will try to get clear requirements from there.
I think we might want dynamic (click-based), not preprocessed... so including another .runtime.
Some thoughts on requirements:
<td> elements and not on (HTML) elements. Sounds obvious, but I saw simple tools that, when sorting, did sorted <a href="...">XYZ</a> before <b>ABC</b>...<tbody> section, not on <thead> section. If there are several <thead> elements then... I would think that the corresponding <tbody> elements are sorted independently of the others, ie, every <thead> - <tbody> pair is a separate "sorting context". But opinions may differ on this.<thead>-<tbody> pairs. I would not be shocked if those tables could not be sorted :-)@iherman covered all the requirements I was about to write, and a few I hadn't thought of just now (though similar have bitten me in the past). Having these features available will be of great benefit to many spec contributors/authors/editors/etc.
While you're in there: I've had requests for floating column heads, so that for large tables with many columns, you can always see the column title.
Ah, yeah. We should make those "sticky" - good suggestion @gkellogg. We can probably prototype that here and then push the CSS to the /tr-design repo.
Most helpful comment
Some thoughts on requirements:
<td>elements and not on (HTML) elements. Sounds obvious, but I saw simple tools that, when sorting, did sorted<a href="...">XYZ</a>before<b>ABC</b>...<tbody>section, not on<thead>section. If there are several<thead>elements then... I would think that the corresponding<tbody>elements are sorted independently of the others, ie, every<thead>-<tbody>pair is a separate "sorting context". But opinions may differ on this.<thead>-<tbody>pairs. I would not be shocked if those tables could not be sorted :-)