Skip to content
Advertisement

Sortying array by two criteria

I have array like this:

JavaScript

And I’m trying to sort this array so elements that are isImportant: true with the most recent date are displayed first and then elements that have isImportant:false with the most recent date

Advertisement

Answer

JavaScript

I hope this will resolve your issue

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement