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

Need to sort mm/dd/yyyy dates and mm/dd/yyyy HH:MM dates as well #68

Closed
abhijoyful opened this issue Apr 2, 2014 · 1 comment
Closed

Comments

@abhijoyful
Copy link

Sorry, I am new to sorting and jquery. I am using your table example with the following sort expression:

$('#myTable>tbody>tr').tsort('td:eq('+nr+')[abbr]', {order:aAsc[nr]});

I have same date value in td and abbr attribute. Sorting is not working fine.

I tried putting yyyymmdd values in abbr attributes. Didn't work. Does abbr values matter?

Could you please improve above sort expression to make it work fine. Thanks already for the plugin.

@Sjeiti
Copy link
Owner

Sjeiti commented Apr 2, 2014

Dates come in so many flavor that I decided not to support them directly. But convert the date to a timestamp and add it as a data attribute and you should be getting on your way.

@Sjeiti Sjeiti closed this as completed Apr 2, 2014
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