Sort data based on multiple fields in javascript
I have a requirement to sort the data and below is what my data looks like. [ { "id": "course1", "type": "course", "sequence": 1 }, { "id": "course2", "type": "course", "sequence": 2 }, { "id": "course1_chapter1", "type": "chapter", "sequence": 1,…