Closed drjasonharrison-vp-eio closed 5 years ago
@drjasonharrison-vp-eio really good point. I think hidden value is a way to go here. Let me know if you wanna take a crack at this and do a PR
Hints: see https://datatables.net/reference/option/columns.orderData and add the hidden column to the javascript.
@drjasonharrison-vp-eio thanks for the link. I believe I have fixed it yesterday although little differently (using columns.render). Would you mind checking once?
Ah, I see that it is fixed. I didn't see any references to a commit or pull request so I didn't think to check the deployment. Thanks!
@drjasonharrison-vp-eio ya its referenced above as closed this
. The commit is https://github.com/techgaun/active-forks/commit/ebe187eba55d118527c0feea492133c113570ada
Excellent! It definitely improves the behaviour.
The lexicographic sort of last update of a fork is putting 2 years, 3 years, 4 years, ... 8 years, before 9 months. Months should come before years. "a year" needs to come before "2 years" etc.
Either the sorting rule attached to the column needs to parse the duration before making comparisons, or a hidden value should be used at the sort key.