Skip to content

Issue sorting dates #125

@AndrewGraber

Description

@AndrewGraber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions