Posted 4 October 2018, 9:20 pm EST
I’m having issue with FlexGrid and sorting by date.
The data provided for the grid has date field set as Date object, I can change the displayed format using [format] parameter (actually I’m using template but that’s not important). [dataType] is set to “4” too yet the sorting seems to be using string representation ( (new Date()).toString() ).
For debugging purpose, here is how it looks sorted by date with format as: ```
{{item.lastUpdate}} || {{formatDate(item.lastUpdate, ‘yyyy-mm-dd hh:ss’)}}
* "* "Fri Aug 31 2018 13:22:00 GMT+0200 (Central European Summer Time) || 2018-08-31 01:00"
* "Sat Jul 21 2018 14:22:00 GMT+0200 (Central European Summer Time) || 2018-07-21 02:00"
* "Tue Sep 04 2018 14:22:00 GMT+0200 (Central European Summer Time) || 2018-09-04 02:00"
* "Wed Aug 29 2018 14:22:00 GMT+0200 (Central European Summer Time) || 2018-08-29 02:00"
"
It's clear that it's sorted alphabetically (Fri, Sat, Tue, Wed) and not by date (August as 1st and the last one).
Any clue?
Thanks