Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue sorting dates #125

Open
AndrewGraber opened this issue Sep 7, 2018 · 1 comment
Open

Issue sorting dates #125

AndrewGraber opened this issue Sep 7, 2018 · 1 comment

Comments

@AndrewGraber
Copy link

AndrewGraber commented Sep 7, 2018

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

@drvic10k
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants