hieuthi / joplin-plugin-markdown-table-sortable

Add the ability to sort rendered tables on the fly
MIT License
21 stars 2 forks source link

probably localised date issue #2

Closed EmVee381 closed 2 years ago

EmVee381 commented 2 years ago

i found that sorting by date doesnt work in localised version of date...i am just reporting it it is not real issue for me but i guess it should be corrected.

image

hieuthi commented 2 years ago

It is not the date it's trailing time that is the problem. The library does not support datetime format, only date. It require quite a lot of works to support this as the library will need to be significantly rewritten and there are many datetime format, so I will not support it.

For people who have similar problem, I will recommend using ISO 8601 datetime format (e.g., 2022-01-07T10:44:12) if you want to use both date and time and make sure they are sorted correctly

EmVee381 commented 2 years ago

ok undertand that.. yes i noted it just because i use shortcut in joplin for inserting date, and it is filled in localised format.... thank you for reply and sugestions, it could help someone in future...

hieuthi commented 2 years ago

For inserting datetime, you can use my other plugin Slash Commands which makes it easy to add different type of datetime format (include iso date) simply by typing /now.