sort does not work when using certain formatters
See original GitHub issueI am setting a column to be formatter:‘link’ and sorter:‘string’ and the column does not sort properly.
NOTE: I do have NULL and blank values in the cell, does that matter?
{ "title": "Url", "field": "url", "formatter": "link", "sorter": "string", "editor": "input" },
Likewise with date inputs
Here is the javascript for the date column
{ "title": "Start At", "field": "start_at", "formatter": "date", "sorter": "date", "sorterParms": { "format": "YYYY-MM-DD" }, "editor": "input" }
I am including moment.js
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Excel won't apply sort/filter/formatting to all rows
I have a spreadsheet of about 250 rows and use a lot of formatting, filtering, and sorting to see what I want to...
Read more >Sorting does not work with formattable and DT - Stack Overflow
I'm working on a shiny dashboard. There is a part where I use the package formattable (to format some columns) + DT(for display)....
Read more >How to keep formatting when sorting data in Excel?
Select the data and sort them with clicking the Data > Sort. Then you will see the cell formatting is kept in the...
Read more >Excel date formatting NOT working? Dates not sorting in Excel?
00:00 Intro of the date sort order not working00:36 Reason these 'dates' are sorting badly00:47 How do we know if a date is...
Read more >How to Sort in Excel Rows or Columns Avoid Sort Problems
If there is a blank row or blank column in the data, part of the data might be sorted, while other data is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks a lot, Oli, Its worked for me. 😃
Hey @AmmarKureja
If you get that message it means that the global variable moment has not been setup when you included the moment library.
if you have used a require function to include moment then you need to use:
I hope that helps,
Cheers
Oli 😃