vue-materialize-datatable icon indicating copy to clipboard operation
vue-materialize-datatable copied to clipboard

Sorting by Date time Strings

Open SkySceneRock opened this issue 5 years ago • 3 comments

So currently we have date time strings in the format of 'YYYY-MM-DD HH:MM:SS.' The data table sorts the values correctly based on their ASCII values but it does not sort correctly based on the values of the dates and times. My question is, is there a way we could make a custom sorter to be put into the table? Is there possibly a data type we can pass in so it would sort based on date time?

SkySceneRock avatar Nov 24 '20 21:11 SkySceneRock

no

MicroDroid avatar Nov 24 '20 21:11 MicroDroid

Any chance this would be an enhancement that would be made in the future? Is there a chance I could help with creating this feature if this is something you would be willing to implement?

SkySceneRock avatar Nov 28 '20 12:11 SkySceneRock

yes

MicroDroid avatar Nov 28 '20 19:11 MicroDroid