Skip to content
Advertisement

How to group and sort data array in javascript?

Here is the json data in which the quarter is in descending order. I would like to maintain the descending order of quarter always. How do I sort by value or dateCreated?

JavaScript

Advertisement

Answer

You can create your own reusable sort function:

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