<rh-table>
: sorting columns when there are merged rows
#1455
Replies: 2 comments
-
Interesting question! Wonder if @hellogreg or @nikkimk have any thoughts on this. |
Beta Was this translation helpful? Give feedback.
-
I admit this is the first time I've even considered this scenario, so take the following as more spitballing than authoritative! In this case, the ID number is not a header itself and has no connection to the Properties and Value headers, so I don't think it's a matter of which column it should sort by. I think it shouldn't do anything to restack rows within those columns. If you had 10 more headers in the top row, which of them would you sort by? In other words, I think any sorts should only be triggered by the those headers above the respective column. (Now, as to whether those headers sort every row in the table top-to-bottom or just sort within multi-row groups when there are ID rowspans > 1, that's another discussion.) Even if we did allow a sort on the ID numbers, we're putting a sort button in a And if you made that ID value a That's not to say we should never allow sorting based on parent headers with rowspan/colspan on them. Maybe there's an argument that we can. But if we did, I think it should work something like this... Assuming "Name" is sortable in the following table, I'd think it could sort the names by the values in the "Last" column, and then by the values in the "First" column. In other words, "Benny Affleck" and "Casey Affleck" will now be the first two entries. What it should not do is rearrange those columns so that "First" comes before "Last" in LTR column order--at least that's my instinct.
|
Beta Was this translation helpful? Give feedback.
-
When
rowspan
is in use, how should<rh-sort-button>
behave?Take this table for example
If there's a sort button on the first column, how should it behave? on the second or third column?
Beta Was this translation helpful? Give feedback.
All reactions