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

Enable chronological sorting by birth date #3

Open
alulsh opened this issue Feb 1, 2021 · 0 comments
Open

Enable chronological sorting by birth date #3

alulsh opened this issue Feb 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@alulsh
Copy link
Owner

alulsh commented Feb 1, 2021

Currently, the birth date column in the family tree table sorts alphabetically and not chronologically. For example, August 29, 1959 sorts before August 6, 1892.

Screen Shot 2021-01-31 at 7 01 41 PM

According to the datatables documentation, we can enable chronological sorting through a data-order or data-sort attribute in the birth date td element.

We can set the data-order value to the Unix timestamp using dayjs().unix() for easy sorting.

@alulsh alulsh added the enhancement New feature or request label Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant