bootstrap-sortable icon indicating copy to clipboard operation
bootstrap-sortable copied to clipboard

Issue sorting dates

Open AndrewGraber opened this issue 7 years ago • 1 comments

I'm having a problem with sorting dates. I have 2 columns that contain dates. One of them is the date-time a report was submitted, one is the date a shift took place. I've got the first one working: <th data-dateformat="YYYY-MM-DD HH:mm">Report Submitted</th> and here is an example entry: <td align="left" data-value="2018-09-01 15:56" class="">2018-09-01 15:56</td>

However, I can't get the other column to sort properly. I have <th data-dateformat="YYYY-MM-DD">Day of Shift</th> and here is an example entry for that: <td data-value="2018-09-01" class="sorted">2018-09-01</td> but for some reason, this column does not sort properly. Here is an image of what I am seeing when I try to sort it.

Forgot to mention, I have moment.js included via a CDN on the page. Also have bootstrap-sortable.css and bootstrap-sortable.js linked

AndrewGraber avatar Sep 07 '18 18:09 AndrewGraber

quite late response, I know :) but did you manage to solve the problem?

drvic10k avatar Aug 20 '19 07:08 drvic10k