Topic: Sort table by dates
I'd like to sort a table by dates, but not sorting "string" dates as with this format YYYY/MM/DD (as a basic example here: https://mdbootstrap.com/docs/react/tables/search/), I'd like to sort by date format as MM/DD/YYYY. Is there any way to do that?
Separate note: in this basic example (https://mdbootstrap.com/docs/react/tables/search/) the column salary in the table shows differents values than the code below.
Unfortunately, it is not possible to attach your custom sorting function, or sorting rules to the DataTable header.
But you could write your own sorting function and just sort your table data.
We are going to upgrade the component, so such functionality will be considered.
I'd also like to see this functionality added.
Being able to sort so that 2-May-2018 comes after 3-Jan-2018 would be very useful.
- User: Free
- Premium support: No
- Technology: React
- MDB Version: 4.11.0
- Device: Web
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes