data-sort-value="myvalue" date issue
Closed this issue · 3 comments
jezzdalgarno commented
Followed the example laid out in the "Machine-friendly sort values vs Human-friendly display values" section, using data-sort-value="myvalue" to sort a date based column. The result is that the sort only occurs on every other click, despite the class being updated with every click. Sorting on any other column not using the data-sort-value="myvalue" method works fine.
jezzdalgarno commented
Interestingly, I've used the same method on another column, which is not date based and it works fine. An example of the value I'm outputting is: data-sort-value="2014-09-17 11:16:57".
jezzdalgarno commented
Ok, I was being dumb, I wasn't outputting an int as I had specified. Have converted date to a timestamp, now works fine.
joequery commented
Glad to hear you got it working!