Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82815

Trying to use the time-elapsed-dhms plugin, problems with sorting minutes

$
0
0

I have a column with time elapsed with a format like 5h 51, though it can go quite high, like 603h 59, 1036h 38, etc. The plugin works perfectly when sorting in a descending order (oldest to newest) but it only works for the hours in ascending order.

For example in descending order it'll correctly order
1744h 03, 1704h 56, 1704h 45, 1704h 05, 1657h 58

But in ascending order, it sorts like this:
5h 51, 603h 59, 603h 50, 603h 47, 653h 10...

It's like changing the sorting order only affects the hour and not how the minutes are sorted. Any ideas?

P.S. Removing the whitespace doesn't appear to affect anything.


Viewing all articles
Browse latest Browse all 82815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>