FyiurAmron / sortablejs

DokuWiki client-side (JS) plugin for sortable tables.
10 stars 5 forks source link

sorting of merged cells #29

Closed Geraldziu closed 2 years ago

Geraldziu commented 7 years ago

How can I sort table with merged cells? Is it possible? I tried to sort the table below, but it doesn't work.

<sortable>
^ Role ^ Project AD grup ^ AD group/user ^
|[[it:wew:ssz:bi:ssas:uprawnienia:department1|Department 1]]|ACL-SSAS-test1|ACL-dep1|
|[[it:wew:ssz:bi:ssas:uprawnienia:department2|Department 2]]|ACL-SSAS-test2|secound test user|
|:::|:::|first test user|
</sortable>
FyiurAmron commented 2 years ago

@Geraldziu sorry, it's not supported by current code.

Since sortablejs is in maintenance-mostly mode now, I'm probably not going to implement it myself.

PRs adding this functionality are welcome, although honestly the case is quite tricky to handle sensibly anyway (e.g., what is the expected result of sorting this by the third colum? or, strictly speaking, how would we know how to handle merged rows at all?), and would require someone to define clear business requirements and scenarios for such case, which is unlikely. I'm closing it, though if you (or anyone else) can work on it, I'd be more than happy to help/merge.