Currently, I am retrieving data from my server and storing it in a variable named "items".
Whenever I execute the following code:
if (this.items) {
this.items.sort(function (a, b) {
return +new Date(b.datum) - +new Date(a.datum);
});
}
It successfully sorts my array on Windows and Android devices. However, when attempting to do the same on an Apple product such as an iPhone, the sorting does not work based on date. This issue has left me puzzled as to why?