I have an array of objects like this:
var a = [ { id: 1, score: 1, isCut: false, dnf: false }, { id: 2, score: 2, isCut: false, dnf: false }, { i
Use comparator function from Array
you can check answers here : Sort array of objects by string property value in JavaScript